Skip to content

feat(github): Prefix release titles with the workspace tag prefix - #926

Merged
BYK merged 1 commit into
masterfrom
feat/workspace-release-titles
Oct 23, 2026
Merged

BYK merged 1 commit into
masterfrom
feat/workspace-release-titles

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Release workspaces add tagPrefix to tags (cli@0.2.0), but the GitHub release title came from the bare changelog heading (0.2.0). That meant two products in the same repo could publish releases with the same title, which is confusing in the releases list and in notifications.

Now, when a workspace is selected and the changelog heading starts with the version, the GitHub target swaps that version for the prefixed tag:

  • 0.2.0 → cli@0.2.0
  • 0.2.0 - Hotfix → cli@0.2.0 - Hotfix
  • Headings that don't start with the version (e.g. Spring Release) stay as they are.
  • Without a changeset, the title is still the tag.

The changelog entry is still looked up by the bare version. Releases outside workspaces don't change, even if they set tagPrefix. That way single-product repos using tagPrefix: v won't start getting v1.2.3 titles.

There's no opt-out. I can add one if someone needs it.

Checks

  • vitest run src/targets/__tests__/github.test.ts: 41 passed. The new tests cover the workspace prefix, extra heading text, non-version headings, no workspace, and no changeset.
  • pnpm lint, tsc --noEmit, prettier --check: clean.
  • Full pnpm test: 16 failures in prepare-dry-run.e2e.test.ts and git.test.ts. They also fail on unmodified master in this sandbox, because a Git author identity hook rejects the test commits. They aren't related to this change.

via BYK.

--

View Junior Session in Sentry

Release workspaces namespace tags with tagPrefix, but GitHub release titles
came from the bare changelog heading, so products in one repository could
publish identically titled releases. Replace the leading version in the
heading with the prefixed tag when a workspace is selected.

Co-Authored-By: BYK <burak.kaya@sentry.io>
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-10-23 23:20 UTC

@BYK
BYK merged commit 341ab3b into master Oct 23, 2026
29 checks passed
@BYK
BYK deleted the feat/workspace-release-titles branch October 23, 2026 23:20

This branch was successfully deployed

1 active deployment
false — 3de2b17b Deployed Oct 23, 2026 by sentry-junior[bot] via Build #3170
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant