René's URL Explorer Experiment


Title: Add `changenotes.mts assemble` command to move changenotes to CHANGELOG.md by mario-campos · Pull Request #4155 · github/codeql-action · GitHub

Open Graph Title: Add `changenotes.mts assemble` command to move changenotes to CHANGELOG.md by mario-campos · Pull Request #4155 · github/codeql-action

X Title: Add `changenotes.mts assemble` command to move changenotes to CHANGELOG.md by mario-campos · Pull Request #4155 · github/codeql-action

Description: This PR extends the pr-checks/changenotes.mts functionality by adding an assemble command that will be used to "flush" (or empty the contents of unreleased-change-notes) to the [UNRELEASED] section of CHANGELOG.md. This PR also replaces the use of constants 0 and 1 for process exit codes with the ExitCode type from @actions/core. 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: N/A Products: N/A 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). 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? N/A 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.

Open Graph Description: This PR extends the pr-checks/changenotes.mts functionality by adding an assemble command that will be used to "flush" (or empty the contents of unreleased-change-notes) to the [UNRELEASE...

X Description: This PR extends the pr-checks/changenotes.mts functionality by adding an assemble command that will be used to "flush" (or empty the contents of unreleased-change-notes) to the [U...

Opengraph URL: https://github.com/github/codeql-action/pull/4155

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:dd3889ce-b051-01aa-2ce9-b3fc7cf981c4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD9CC:2AB324:7A76CF:A653EA:6AED2EBE
html-safe-nonce42bb00863d841213cb911d54213ac7e5c832580a8e731575fbfa057ccbb6bdf5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUNDOjJBQjMyNDo3QTc2Q0Y6QTY1M0VBOjZBRUQyRUJFIiwidmlzaXRvcl9pZCI6IjU0NDQyMDQ0ODM5MzA0Nzc0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac03d81c4c41a9b51db3ea4160a8a6a083ce6c7a8aca963646961392e6b77f27bb
hovercard-subject-tagpull_request:4569845409
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/github/codeql-action/pull/4155/files
twitter:imagehttps://avatars.githubusercontent.com/u/1663284?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1663284?s=400&v=4
og:image:altThis PR extends the pr-checks/changenotes.mts functionality by adding an assemble command that will be used to "flush" (or empty the contents of unreleased-change-notes) to the [UNRELEASE...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonee51d0b7b5ab34b1688c05b54c3ed17b8658b2fa9bca973a9c740683ccb12cf4a
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/github/codeql-action git https://github.com/github/codeql-action.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id259445878
octolytics-dimension-repository_nwogithub/codeql-action
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id259445878
octolytics-dimension-repository_network_root_nwogithub/codeql-action
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release59ebb7b901cc154ecc179a44f266fcf69f343b30
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql-action/pull/4155/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fpull%2F4155%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fpull%2F4155%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=github%2Fcodeql-action
Reloadhttps://github.com/github/codeql-action/pull/4155/files
Reloadhttps://github.com/github/codeql-action/pull/4155/files
Reloadhttps://github.com/github/codeql-action/pull/4155/files
githubhttps://github.com/github
codeql-actionhttps://github.com/github/codeql-action
Codehttps://github.com/github/codeql-action
Issues165 (165)https://github.com/github/codeql-action/issues
Pull requests41 (41)https://github.com/github/codeql-action/pulls
Actionshttps://github.com/github/codeql-action/actions
Security and quality2 (2)https://github.com/github/codeql-action/security
Insightshttps://github.com/github/codeql-action/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fgithub%2Fcodeql-action%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgithub%2Fcodeql-action%2Fissues%2Fnew%2Fchoose
mario-camposhttps://github.com/mario-campos
mainhttps://github.com/github/codeql-action/tree/main
mario-campos/merge-changenoteshttps://github.com/github/codeql-action/tree/mario-campos/merge-changenotes
Conversation 33 https://github.com/github/codeql-action/pull/4155
Commits 18 https://github.com/github/codeql-action/pull/4155/commits
Checks 233 https://github.com/github/codeql-action/pull/4155/checks
Files changed https://github.com/github/codeql-action/pull/4155/files
Please reload this pagehttps://github.com/github/codeql-action/pull/4155/files
Add changenotes.mts assemble command to move changenotes to CHANGELOG.md https://github.com/github/codeql-action/pull/4155/files#top
Show all changes 18 commits https://github.com/github/codeql-action/pull/4155/files
cb31eab Do not include trailing newlines in `NO_CHANGES_STR` mario-campos Sep 18, 2026 https://github.com/github/codeql-action/pull/4155/commits/cb31eabcd8c75b939c159b0f04b821a0bfd130f6
47d607e Add changelog parsing helper `getHeader` mario-campos Sep 18, 2026 https://github.com/github/codeql-action/pull/4155/commits/47d607e2c1eebf3c9382b1872b2f902a7915bbc4
bb1dc54 Add CHANGELOG function `addBodyLinesToUnreleasedSection` mario-campos Sep 18, 2026 https://github.com/github/codeql-action/pull/4155/commits/bb1dc5460bab614d5c8c05120b7e5465e04d8417
1ee3265 Add `changenotes.mts flush` command mario-campos Sep 18, 2026 https://github.com/github/codeql-action/pull/4155/commits/1ee32652624bab3b2447ddd6f0d5794ec2ea6f1a
bffae1c Use `withChangelog` I/O helper mario-campos Sep 18, 2026 https://github.com/github/codeql-action/pull/4155/commits/bffae1c4b8f56e1f31092864ec57102c0c026ac2
b246e56 Use `ExitCode` instead of `0`/`1` mario-campos Sep 18, 2026 https://github.com/github/codeql-action/pull/4155/commits/b246e5606946f9e44193fd31a37458b82052507a
d63b2a4 Assume '[UNRELEASED]' section is first section mario-campos Sep 18, 2026 https://github.com/github/codeql-action/pull/4155/commits/d63b2a40db843ae6d4d33fcca9dbf0cd3e5384e0
128614a Simplify `getHeader` to operate on `ChangelogSection`s mario-campos Sep 18, 2026 https://github.com/github/codeql-action/pull/4155/commits/128614ad8b661f91e7038d97c93e89fbe6c26857
bc0efd6 Simplify `addBodyLinesToUnreleasedSection` mario-campos Sep 18, 2026 https://github.com/github/codeql-action/pull/4155/commits/bc0efd6d9138ed65d251d7762a29ddd22614fc6a
977b29b Replace `splice` with `push` and `pop` mario-campos Sep 18, 2026 https://github.com/github/codeql-action/pull/4155/commits/977b29b897eab1468a089ac1278b1b7c351bcffd
7f54212 Rename `flush` command to `assemble` mario-campos Sep 18, 2026 https://github.com/github/codeql-action/pull/4155/commits/7f54212a01b1fcd5c22896032d6c677591788874
a92f7fb Refactor changenote file listing into function to D.R.Y. mario-campos Sep 18, 2026 https://github.com/github/codeql-action/pull/4155/commits/a92f7fb68832cf532975c676aac5741c34cc63b2
7715606 Update JSDoc comment with parameter `lines` mario-campos Sep 21, 2026 https://github.com/github/codeql-action/pull/4155/commits/771560691a49adf7ee17519f5091ca8f747d0ce9
598cda3 Apply suggestion from @mbg mario-campos Sep 21, 2026 https://github.com/github/codeql-action/pull/4155/commits/598cda36cf3f4ab1d9ab514b3015be59b2b46eed
c496c6c Rename `name` to `absolutePath` for clarity mario-campos Sep 21, 2026 https://github.com/github/codeql-action/pull/4155/commits/c496c6cceb2cee0566ea8dd194c7915be1420850
0263122 Format code with `npm run lint-fix` mario-campos Sep 21, 2026 https://github.com/github/codeql-action/pull/4155/commits/02631222091e92e55383c4e23534b590cadc795a
c0bd54f Replace JSDoc text with `@throws` mario-campos Sep 21, 2026 https://github.com/github/codeql-action/pull/4155/commits/c0bd54fdf4a49ae453d9ad729e6898dd6fd0a24b
b1668d6 Flesh out a comment mario-campos Sep 21, 2026 https://github.com/github/codeql-action/pull/4155/commits/b1668d6234eb740e49d28a1b1b78a3947d629516
Clear filters https://github.com/github/codeql-action/pull/4155/files
Please reload this pagehttps://github.com/github/codeql-action/pull/4155/files
Please reload this pagehttps://github.com/github/codeql-action/pull/4155/files
bundle-changelog.test.ts https://github.com/github/codeql-action/pull/4155/files#diff-0f3ad85482c107de1c682580325116a602bd4815e176a1fe2d611d9090503535
changelog.test.ts https://github.com/github/codeql-action/pull/4155/files#diff-30c6f872e5a71c77a6d493373e62786dae40641e7255f9f4b10bc6e9847d55b4
changelog.ts https://github.com/github/codeql-action/pull/4155/files#diff-a33dae327fb83f2235765eff14b5311dc66258fe68a2699222035ae9920659f7
changenotes.mts https://github.com/github/codeql-action/pull/4155/files#diff-8fd8be932bdf0217e55c57a76e1d2fe0a0b5a3e78ecc00d811760d8ef5216634
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
pr-checks/bundle-changelog.test.tshttps://github.com/github/codeql-action/pull/4155/files#diff-0f3ad85482c107de1c682580325116a602bd4815e176a1fe2d611d9090503535
View file https://github.com/github/codeql-action/blob/b1668d6234eb740e49d28a1b1b78a3947d629516/pr-checks/bundle-changelog.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql-action/pull/4155/{{ revealButtonHref }}
https://github.com/github/codeql-action/pull/4155/files#diff-0f3ad85482c107de1c682580325116a602bd4815e176a1fe2d611d9090503535
https://github.com/github/codeql-action/pull/4155/files#diff-0f3ad85482c107de1c682580325116a602bd4815e176a1fe2d611d9090503535
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
pr-checks/changelog.test.tshttps://github.com/github/codeql-action/pull/4155/files#diff-30c6f872e5a71c77a6d493373e62786dae40641e7255f9f4b10bc6e9847d55b4
View file https://github.com/github/codeql-action/blob/b1668d6234eb740e49d28a1b1b78a3947d629516/pr-checks/changelog.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql-action/pull/4155/{{ revealButtonHref }}
https://github.com/github/codeql-action/pull/4155/files#diff-30c6f872e5a71c77a6d493373e62786dae40641e7255f9f4b10bc6e9847d55b4
https://github.com/github/codeql-action/pull/4155/files#diff-30c6f872e5a71c77a6d493373e62786dae40641e7255f9f4b10bc6e9847d55b4
https://github.com/github/codeql-action/pull/4155/files#diff-30c6f872e5a71c77a6d493373e62786dae40641e7255f9f4b10bc6e9847d55b4
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
pr-checks/changelog.tshttps://github.com/github/codeql-action/pull/4155/files#diff-a33dae327fb83f2235765eff14b5311dc66258fe68a2699222035ae9920659f7
View file https://github.com/github/codeql-action/blob/b1668d6234eb740e49d28a1b1b78a3947d629516/pr-checks/changelog.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql-action/pull/4155/{{ revealButtonHref }}
https://github.com/github/codeql-action/pull/4155/files#diff-a33dae327fb83f2235765eff14b5311dc66258fe68a2699222035ae9920659f7
https://github.com/github/codeql-action/pull/4155/files#diff-a33dae327fb83f2235765eff14b5311dc66258fe68a2699222035ae9920659f7
https://github.com/github/codeql-action/pull/4155/files#diff-a33dae327fb83f2235765eff14b5311dc66258fe68a2699222035ae9920659f7
https://github.com/github/codeql-action/pull/4155/files#diff-a33dae327fb83f2235765eff14b5311dc66258fe68a2699222035ae9920659f7
https://github.com/github/codeql-action/pull/4155/files#diff-a33dae327fb83f2235765eff14b5311dc66258fe68a2699222035ae9920659f7
https://github.com/github/codeql-action/pull/4155/files#diff-a33dae327fb83f2235765eff14b5311dc66258fe68a2699222035ae9920659f7
https://github.com/github/codeql-action/pull/4155/files#diff-a33dae327fb83f2235765eff14b5311dc66258fe68a2699222035ae9920659f7
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
pr-checks/changenotes.mtshttps://github.com/github/codeql-action/pull/4155/files#diff-8fd8be932bdf0217e55c57a76e1d2fe0a0b5a3e78ecc00d811760d8ef5216634
View file https://github.com/github/codeql-action/blob/b1668d6234eb740e49d28a1b1b78a3947d629516/pr-checks/changenotes.mts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql-action/pull/4155/{{ revealButtonHref }}
https://github.com/github/codeql-action/pull/4155/files#diff-8fd8be932bdf0217e55c57a76e1d2fe0a0b5a3e78ecc00d811760d8ef5216634
https://github.com/github/codeql-action/pull/4155/files#diff-8fd8be932bdf0217e55c57a76e1d2fe0a0b5a3e78ecc00d811760d8ef5216634
Please reload this pagehttps://github.com/github/codeql-action/pull/4155/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.