Conversation
…releases For CalVer projects the publish issue changelog now uses bold author names (`**author**`) instead of `@author` to avoid pinging many contributors on every regular-cadence release. The committed CHANGELOG.md is unaffected and keeps clickable @-mentions. CalVer is detected from either the CLI argument (`craft prepare calver`) or the config (`versioning.policy: calver`).
hubertdeng123
approved these changes
Feb 17, 2026
| * `- Title by @author in [#123](url)` | ||
| */ | ||
| export function disableChangelogMentions(changelog: string): string { | ||
| return changelog.replace(/ by @(\S+) in /g, ' by **$1** in '); |
Member
There was a problem hiding this comment.
this is a bit brittle, but don't really see another great way to do this
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.
Summary
For CalVer projects, the publish issue changelog now uses bold author names (
**author**) instead of@authorto avoid pinging many contributors on every regular-cadence release. The committedCHANGELOG.mdis unaffected and keeps clickable@-mentions.Changes
src/utils/helpers.ts— NewdisableChangelogMentions()helper that replacesby @author inwithby **author** invia regex, targeting the exact output format offormatChangelogEntry()src/commands/prepare.ts— Before writing the changelog to GitHub Actions outputs (which feed the publish issue body), detects CalVer via two paths:argv.newVersion === 'calver'(CLI:craft prepare calver)getVersioningPolicy() === VersioningPolicy.CalVer(config:versioning.policy: calver)src/utils/__tests__/helpers.test.ts— 7 tests for the regex helperWhy regex replacement instead of re-generating the changelog?
The same
changelogBodyfeeds bothCHANGELOG.md(written earlier, wants@-mentions for clickable links) and the Actions file output (wants bold mentions to avoid pings). Re-generating would require duplicating expensive GitHub API calls or refactoring the memoization layer. A targeted regex on the well-definedformatChangelogEntry()output is simpler and equally reliable.