Skip to content

Commit 7aa6422

Browse files
vaindclaude
andcommitted
fix(changelog): disable @-mention pings in all publish issues
#755 only stripped @-mentions from the publish-issue changelog for CalVer releases, on the theory that regular-cadence releases are the noisy ones. In practice any release that bundles more than a handful of PRs pings every contributor when the publish issue is created — e.g. getsentry/publish#9728 for devservices 1.5.2 (SemVer) notified everyone listed. Nobody needs a notification because their PR shipped in a release, so apply the same treatment regardless of versioning policy. The committed CHANGELOG.md is unaffected and keeps @-mentions, since those don't notify anyone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 47e3f18 commit 7aa6422

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

‎src/commands/prepare.ts‎

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -964,16 +964,11 @@ export async function prepareMain(argv: PrepareOptions): Promise<any> {
964964
setGitHubActionsOutput('sha', releaseSha);
965965
setGitHubActionsOutput('previous_tag', oldVersion || '');
966966
if (changelogBody) {
967-
// For CalVer releases, replace @-mentions with bold formatting in the
968-
// changelog destined for publish issues, to avoid pinging many
969-
// contributors on regular-cadence releases. The committed CHANGELOG.md
970-
// keeps the original @-mentions (they don't create notifications).
971-
const isCalVer =
972-
argv.newVersion === 'calver' ||
973-
getVersioningPolicy() === VersioningPolicy.CalVer;
974-
const issueChangelog = isCalVer
975-
? disableChangelogMentions(changelogBody)
976-
: changelogBody;
967+
// Replace @-mentions with bold formatting in the changelog destined for
968+
// publish issues, otherwise every contributor in the release gets
969+
// pinged. The committed CHANGELOG.md keeps the original @-mentions
970+
// (they don't create notifications).
971+
const issueChangelog = disableChangelogMentions(changelogBody);
977972

978973
// Write full changelog to a file to avoid E2BIG when the action.yml
979974
// "Request publish" step expands it into an environment variable.

0 commit comments

Comments
 (0)