Restore the direct-push version bump workflow by reverting PR #284's PR-based changes, removing the version guard bot exemption, and documenting the required GitHub ruleset bypass so github-actions[bot] can push directly to main.
Read and implement all steps in the plan at docs/plans/fix-version-bump-ruleset-bypass.html — Restore direct-push version bump with ruleset bypass
fix-version-bump-ruleset-bypass.html
docs/plans/fix-version-bump-ruleset-bypass.html
Context
The auto-version-bump.yml workflow runs after merges to main that touch kit/plugins/**. It computes the correct semver bump and updates marketplace.json, but cannot land the change because the repo's branch ruleset requires all changes go through a pull request. PR #284 changed the workflow to create PRs instead, but github-actions[bot] lacks permission to create PRs. The simplest fix is to add github-actions[bot] as a bypass actor in the branch ruleset and revert to the original direct-push workflow. The [skip ci] commit prefix and ci(versions): guard already prevent infinite loops.
Files to Modify
- .github/workflows/
auto-version-bump.ymlmodified revert to direct-push approachversion-guard.ymlmodified remove bot exemption conditiondocs/GITHUB_SETUP.mdnew document ruleset bypass configuration
Steps
auto-version-bump.yml to direct-push approach
Verify
contents: write permission (no pull-requests: write).version-guard.yml to remove the bot exemption
Verify
if: condition; it runs for every PR that changes the guarded paths.docs/GITHUB_SETUP.md documenting the required ruleset bypass
Verify
docs/GITHUB_SETUP.md, names the exact Settings path, and references both the workflow file and the loop guards.Verify
gh run list --workflow auto-version-bump.yml --limit 1 shows conclusion: success; git log --oneline -1 origin/main shows a ci(versions): commit.Tests
File: N/A (manual verification via CI run)
Type: smoke test
Asserts: The auto-version-bump workflow runs to completion with conclusion: success after a plugin change is merged to main, and marketplace.json on main reflects the bumped version.
Run: Merge a trivial plugin change, then: gh run list --repo shawn-sandy/agentics --workflow auto-version-bump.yml --limit 1 --json conclusion
Acceptance Criteria
Verification
- Read
auto-version-bump.yml— confirm it has a "Commit and push" step that runsgit pushdirectly, nogh pr create, and permissions list onlycontents: write. - Read
version-guard.yml— confirm the job has noif:condition. - Read
docs/GITHUB_SETUP.md— confirm it documents the bypass actor configuration. - After the repo owner adds
github-actions[bot]to the ruleset bypass list, merge anyfeat(kit/plugins/*)orfix(kit/plugins/*)change and confirm the workflow run succeeds.
Completion Checklist
Completion Report
No items to report — all requirements met.
Unresolved Questions
-
Bypass scope — should the bypass be "Always" or scoped to specific rules?
The branch ruleset for main may have multiple rules (require PR, require status checks, require linear history, etc.). Should github-actions[bot] bypass ALL rules or only "Require a pull request before merging"? Check the current ruleset configuration for the shawn-sandy/agentics repo using gh api repos/shawn-sandy/agentics/rulesets and recommend the minimum bypass scope that allows the version bump push without exempting the bot from other protections like status checks.