Repository navigation
fix(dev): route the dev-version bump through a pull request - #1234
Merged
Merged
Conversation
…it as a draft The bump commit never met a gate. A commit created through GitHub's API raises no events, and a direct push to `main` is not a pull request, so nothing would have checked what this workflow produces — and a bump is not "only a version string": it regenerates fourteen manifests and the lockfile, any of which can come out wrong. The candidate is now built on its own branch, put through the *same* four check workflows a pull request runs, and only then offered as a pull request. A failed check deletes the branch instead of leaving a broken PR behind. `pre-commit.yml`, `tests.yml`, `rat.yml` and `zizmor.yml` each gain a `workflow_call` trigger and an optional `ref` input, and the bump workflow `uses:` them. They are called, not copied, so they cannot drift from what a PR gets; the input is empty on every other trigger, leaving `actions/checkout` on its normal behaviour. The pull request opens as a **draft**, which is what makes it usable. GitHub raises no `pull_request` events for anything `GITHUB_TOKEN` does, so a ready PR opened from here would sit forever on "N of N required status checks are expected", and the checks this workflow ran are attached to its own run rather than to the PR head. Marking a draft ready raises `ready_for_review`, which is a real event because a human does it — so the four check workflows now list that type explicitly (it is not in the default set) and pressing *Ready for review* starts the required checks against the PR head, exactly as an ordinary PR gets them. Reusable-workflow calls use GitHub's `$/` self-repository syntax rather than `./`, per zizmor's `self-repository` audit. Generated-by: Claude Opus 5
`CONTRIBUTING.md` listed every CI workflow except the one a human starts by hand, which is also the only one that writes to the repository — so the job graph, the signed-commit path and the draft-PR behaviour existed only as comments inside the YAML. Adds a *Bumping the dev version* section covering the six jobs, why the checks are `uses:` of the real workflows rather than copies of their steps, and why the pull request opens as a draft: GitHub raises no `pull_request` events for anything `GITHUB_TOKEN` does, so marking the draft ready is what starts the required checks against the PR head. Notes the side effect that every draft PR in this repo now behaves that way, and gives the one-liner for reviewing a bump diff — every changed line should be the version string and nothing else. Also realigns `docs/setup/marketplace.md` § *How to bump*, which still described the workflow committing straight to `main`. Generated-by: Claude Opus 5
Run apache#1 of `bump dev version` failed, and the reason is worth keeping rather than rediscovering: gh: protected branch 'main' check failed: 3 of 3 required status checks are expected. `main` requires three status checks, and a commit arriving through the API carries none — GitHub enforces branch protection there exactly as it does on a push. The preceding commit already routes the bump through a pull request; this records the evidence for why, in the workflow header and in CONTRIBUTING, so the direct-push shape is not proposed again. Generated-by: Claude Opus 5
potiuk
force-pushed
the
fix/bump-workflow-draft-pr
branch
from
September 15, 2026 16:37
bdd0baf to
fc05131
Compare
This was referenced Sep 15, 2026
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
bump dev versioncannot work as merged. feat(dev): add a maintainer-run workflow that moves the dev stamp #1233 landed the version that commits straight tomain, and run #1 was refused outright:mainrequires three status checks, and a commit arriving through the API carries none — GitHub enforces branch protection there exactly as it does on a push. The workflow onmaintoday fails every time it is run.Routes the bump through a pull request instead, and checks the candidate with the same workflows a PR runs before offering it.
Opens that PR as a draft, which is what makes its required checks startable at all.
These are the commits that were already on #1233's branch when it was merged early — the merge took the first commit only.
Type of change
.claude/skills/<name>/) — eval fixtures updated belowtools/<system>/*.md)tools/*/withpyproject.toml)docs/,README.md,CONTRIBUTING.md)projects/_template/)prek, workflows, validators)Test plan
prek run --all-filespassesuv run pytest/ruff check/mypypassesprek run --filesclean over every touched path.zizmor --persona regularclean on all five workflows.workflow_dispatchruns whatever is onmain. The next run after this merges is the first test of the PR path.RFC-AI-0004 compliance
Linked issues
Follow-up to #1233.
Notes for reviewers
pre-commit.yml,tests.yml,rat.ymlandzizmor.ymleach gain aworkflow_calltrigger and an optionalrefinput, and the bump workflowuses:them against the candidate branch. The input is empty on every other trigger, leavingactions/checkouton its normal behaviour. A copy of their steps would drift; a call cannot.pull_requestevents for anythingGITHUB_TOKENdoes, so a PR opened by a workflow starts no checks and would sit forever on the same "N of N required status checks are expected". Marking a draft ready raisesready_for_review— a real event, because a human does it — so the four check workflows now list that activity type explicitly. It is not in the defaultopened/synchronize/reopenedset. Side effect worth agreeing to: every draft PR in this repo now starts its checks when marked ready.uses: $/...rather than./...is zizmor'sself-repositoryaudit at High confidence with an auto-fix, which I applied rather than suppressed. If you would rather not depend on the newer syntax, the alternative is./plus a# zizmor: ignore[self-repository], matchingasf-allowlist-check.yml.🤖 Generated with Claude Code