GeezerVison is showing github.com — Incorporate change-notes into CHANGELOG.md at release by mario-campos · Pull Request #4201 · github/codeql-action
Conversation
mario-campos
commented
Oct 6, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
This PR automates the effective execution of pr-checks/changenotes.mts assemble into the update-release-branch process by refactoring the code to be importable, and then importing it into pr-checks/update-release-branch.ts.
Testing
In my test fork, I dispatched update-release-branch.yml to confirm expected behaviour.
Test 1
Test 2
Risk assessment
For internal use only. Please select the risk level of this change:
- Low risk: Changes are fully under feature flags, or have been fully tested and validated in pre-production environments and are highly observable, or are documentation or test only.
Which use cases does this change impact?
Workflow types:
Products:
Environments:
- Testing/None - This change does not impact any CodeQL workflows in production.
How did/will you validate this change?
- Unit tests - I am depending on unit test coverage (i.e. tests in
.test.ts files).
- End-to-end tests - I am depending on PR checks (i.e. tests in
pr-checks).
- Other - Manual testing
If something goes wrong after this change is released, what are the mitigation and rollback strategies?
- Development/testing only - This change cannot cause any failures in production.
How will you know if something goes wrong after this change is released?
Are there any special considerations for merging or releasing this change?
- No special considerations - This change can be merged at any time.
Merge / deployment checklist
- Confirm this change is backwards compatible with existing workflows.
- Consider adding a changelog entry for this change.
- Confirm the readme and docs have been updated if necessary.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot review overview
🟡 Changes recommended
Changenote deletions are not committed and can occur before the changelog is successfully written.
Review effort: Balanced
Findings: 1 
Open (1)
What changed in this PR
Automates incorporating unreleased changenotes into the changelog during release preparation.
Changes:
- Extracts reusable changenote transfer logic.
- Integrates changenote assembly into release branch preparation.
- Updates ESM entry-point detection.
| File |
Description |
pr-checks/changenotes.mts |
Adds reusable changenote assembly and cleanup. |
pr-checks/update-release-branch.mts |
Runs assembly when updating the release changelog. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot review overview
🟢 Approval recommended
The release workflow integration is focused and correctly stages both the populated changelog and removed changenotes.
Review effort: Balanced
Findings: None
Resolved since last review (1)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
mbg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This basically LGTM. I'd say that we should hold off from merging this until the current CLI release has wrapped up though (including the CodeQL Action release that's part of that process) so that, if there is a problem with this, we don't accidentally throw a spanner into that process -- especially since we don't currently have any change notes.
Two things I'd like to see on top of what's here:
- A workflow (or check in an existing one) that runs for ordinary PRs (not release PRs) and which complains (but doesn't necessarily fail) if the PR changes
CHANGELOG.md directly. That can be an independent PR from this one.
- It would be good to improve our test coverage here for this. I know that
changenotes.ts has its own ones that test the functions there, but it would be good to have something more end-to-end. Let's chat about how to best approach that.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
mario-campos reacted with thumbs up emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks for performing a test run! There are a couple of minor extra things to check there, which I have let you know. Once we have confirmed those, we can merge this.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Oct 15, 2026
Reviewers
mbg
mbg approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size/S
Should be easy to review
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|