Skip to content

feat(config): Expand workspace placeholders in release workspace settings - #939

Merged
BYK merged 1 commit into
masterfrom
feat/workspace-placeholders
Oct 27, 2026
Merged

BYK merged 1 commit into
masterfrom
feat/workspace-placeholders

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

A glob release-workspace key gave every matched directory identical settings, so independently released packages each needed a near-copy literal entry that only differed by name (tagPrefix, releaseBranchPrefix, status contexts, artifact names, ...).

String settings now expand placeholders for the selected workspace when the config is resolved:

  • {{workspace}}: the workspace path (static/packages/scraps)
  • {{workspaceName}}: its basename (scraps)
  • {{packageName}} / {{packageSimpleName}}: from the workspace's package.json (@sentry/scraps / sentry-scraps). Craft reads it only when one of these is used, and fails if the file or name is missing.

Expansion covers inherited top-level settings too, so a top-level default like releaseBranchPrefix: '{{workspaceName}}/release' works for every workspace.

The issue proposed {{simpleName}}. I used {{packageSimpleName}} because the npm target's artifactTemplate already uses {{name}}, {{simpleName}}, and {{version}} per package workspace, and expanding those at config time would break them. Unknown {{...}} markers are left alone.

Combined with #938 (#936), a single static/packages/* entry can replace the three literal entries in getsentry/sentry, including the custom preReleaseCommand.

Fixes #937

via @BYK.

--

View Junior Session [Sentry]

…ings

Fixes #937

Co-Authored-By: Burak Yigit Kaya <126780+BYK@users.noreply.github.com>
@github-actions

github-actions Bot commented Oct 27, 2026 •

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

@BYK
BYK merged commit db768ae into master Oct 27, 2026
29 checks passed
@BYK
BYK deleted the feat/workspace-placeholders branch October 27, 2026 22:07

This branch was successfully deployed

1 active deployment
false — c6400ba8 Deployed Oct 27, 2026 by sentry-junior[bot] via Build #3236
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.

Per-workspace placeholders for glob release workspaces

1 participant