feat(changelog-github): linkify issue references in changelog entries#1850
Merged
Andarist merged 7 commits intochangesets:mainfrom Feb 23, 2026
Merged
Conversation
Converts plain changesets#1234 references in changeset summaries into clickable GitHub links in the generated CHANGELOG.md. References that are already part of markdown links are left unchanged. Uses the configured repo and GITHUB_SERVER_URL for link generation. Fixes changesets#538
🦋 Changeset detectedLatest commit: cbcb5dd The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1850 +/- ##
==========================================
- Coverage 81.33% 81.22% -0.11%
==========================================
Files 54 55 +1
Lines 2277 2333 +56
Branches 679 690 +11
==========================================
+ Hits 1852 1895 +43
- Misses 420 433 +13
Partials 5 5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Andarist
reviewed
Feb 23, 2026
| line: string, | ||
| { serverUrl, repo }: { serverUrl: string; repo: string } | ||
| ): string { | ||
| return line.replace(/\[.*?\]\(.*?\)|\B#([1-9]\d*)\b/g, (match, issue) => |
Member
There was a problem hiding this comment.
Kicking the remark-github can further down the road 😉
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
When changeset summaries contain issue references like
#1234, they render as clickable links in GitHub PR descriptions but appear as plain text in the generatedCHANGELOG.md(#538).Solution
Added a post-processing step in
getReleaseLinethat converts plain#<number>references into proper markdown links pointing to the repo's issues page. References that are already inside markdown links are skipped to avoid double-linkification.The links use the configured
repooption andGITHUB_SERVER_URLenvironment variable, consistent with how PR and commit links are generated.Tests
Added two tests:
All existing tests continue to pass.
Fixes #538