Skip to content

ci(release): stamp the version through a PR on protected release branches - #239

Merged
kazo0 merged 1 commit into
release/stable/7.0from
dev-sb/release-stamp-pr
Nov 15, 2026
Merged

kazo0 merged 1 commit into
release/stable/7.0from
dev-sb/release-stamp-pr

Conversation

@kazo0

@kazo0 kazo0 commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): none

PR Type

  • Build or CI related changes

What is the current behavior?

  • The release workflow commits the version stamp and pushes it straight to release/stable/<x.y>.
  • That branch now requires a PR and three status checks, so the push is rejected and nothing is released. The 7.0.1 run failed this way.

What is the new behavior?

A release now takes two pushes to the release branch:

  1. A push whose manifests lack the next version opens a chore(release): <version> PR from chore/release-<version>-stamp, without approval. A later push before it merges refreshes the same branch and PR.
  2. Merging that PR starts the run that waits for approval on plugin-release, then tags, publishes and opens the marketplace PR on main, as before.

Reviewer's guide

  • Start here: .github/workflows/release.yml. The old release job is split into version (computes the version, checks whether the manifests already carry it), stamp (opens the PR) and release (publish, unchanged steps).
  • Watch for: a PR opened with GITHUB_TOKEN starts no workflows, so the stamp PR's required checks won't run until someone closes and reopens it. Its body says so. A GitHub App token would avoid this but needs a new secret.
  • Tested: the YAML parses. Against the current manifests, the check reports 7.0.0 as stamped and 7.0.1 as not (5 files). The workflow itself has not run on GitHub.

PR Checklist

  • Associated with an issue (GitHub or internal)

Additional Information

  • Merging this into release/stable/7.0 is itself a push, so it opens the 7.0.1 stamp PR.
  • The same change needs to land on main, so release branches cut later carry it.

🤖 Generated with Claude Code

…ches

- release/stable/* now requires a PR, so the workflow's direct push of the version commit is rejected.
- A push whose manifests lack the next version opens (or refreshes) a chore/release-<version>-stamp PR.
- Merging it starts the run that waits for plugin-release approval, then tags, publishes and opens the main PR.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kazo0
kazo0 merged commit 031bc26 into release/stable/7.0 Nov 15, 2026
6 checks passed
@kazo0
kazo0 deleted the dev-sb/release-stamp-pr branch November 15, 2026 18:38
kazo0 added a commit that referenced this pull request Nov 15, 2026
- The version PR from #239 cannot pass the required checks: they need source.ref to name a published release, which a stamp PR never does.
- The release job now commits the stamp locally and pushes it as the release tag only; release branches are protected and stay unstamped.
- This puts the release job back as it was before #239, apart from those two lines.

Co-authored-by: Claude Opus 5.5 <[email protected]>
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