Skip to content

Improve logs#1148

Merged
int128 merged 1 commit intomainfrom
int128/Improve-logs
Mar 14, 2026
Merged

Improve logs#1148
int128 merged 1 commit intomainfrom
int128/Improve-logs

Conversation

@int128
Copy link
Copy Markdown
Owner

@int128 int128 commented Mar 14, 2026

No description provided.

@int128 int128 marked this pull request as ready for review March 14, 2026 08:06
@int128 int128 requested a review from Copilot March 14, 2026 08:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves GitHub Actions logging by replacing scattered core.info messages and low-level startGroup/endGroup usage with core.group(...) blocks, making logs more structured and collapsible while preserving existing behavior.

Changes:

  • Wrap key steps in handlePullRequestEvent and handleOtherEvent with core.group(...) for clearer, scoped logs.
  • Move grouping responsibility up to callers and remove core.startGroup/core.endGroup from git.getParentSHAs.
  • Update unit tests to mock core.group so grouped callbacks still execute during tests.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/pull_request_event.test.ts Mocks core.group to execute grouped callbacks during PR event tests.
tests/other_event.test.ts Imports @actions/core and mocks core.group for grouped logging paths.
src/pull_request_event.ts Converts major log steps (commit, graph, push, cherry-pick flow) into grouped sections.
src/other_event.ts Groups commit, fast-forward attempt, and PR fallback for clearer action logs.
src/git.ts Removes internal grouping from getParentSHAs to avoid nested/low-level log grouping.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@int128 int128 merged commit f2ac45a into main Mar 14, 2026
7 checks passed
@int128 int128 deleted the int128/Improve-logs branch March 14, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants