Skip to content

Support custom token for triggering CI on version PRs - #11

Merged
theoephraim merged 2 commits into
mainfrom
fix/version-pr-ci-triggers
Apr 15, 2026
Merged

theoephraim merged 2 commits into
mainfrom
fix/version-pr-ci-triggers

Conversation

@theoephraim

@theoephraim theoephraim commented Apr 15, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add BUMPY_GH_TOKEN env var — when set, bumpy pushes the version branch using the custom token, bypassing GitHub's anti-recursion guard so PR workflows fire automatically
  • Add bumpy ci setup interactive command that walks users through creating a fine-grained PAT or GitHub App and stores it as a repo secret via gh secret set
  • BUMPY_GH_TOKEN is only used for the git push — PR comments and other gh CLI calls continue using the default GITHUB_TOKEN so they appear as the Actions bot
  • Temporarily clears the actions/checkout extraheader during push so the custom token is actually used (no persist-credentials: false needed)
  • Only warns about missing token on GitHub Actions — other CI providers don't have this limitation

Test plan

  • Run bumpy ci setup locally, verify PAT flow works end-to-end
  • Set BUMPY_GH_TOKEN secret, merge a changeset, verify version PR triggers CI checks
  • Verify PR comments still appear as GitHub Actions bot (not the PAT user)
  • Test without BUMPY_GH_TOKEN set — verify warning is logged

🤖 Generated with Claude Code

Commits pushed with GITHUB_TOKEN don't trigger workflow runs due to
GitHub's anti-recursion guard. After the normal git push, recreate the
tip commit via the GitHub REST API and force-update the branch ref so
that pull_request workflows fire automatically — no PATs, GitHub Apps,
or changes to user CI configs needed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Apr 15, 2026 •

Copy link
Copy Markdown

bumpy-frog

The changes in this PR will be included in the next version bump.

patch Patch releases

  • @varlock/bumpy 0.0.1 → 0.0.2

Changesets in this PR

Click here if you want to add another changeset to this PR


This comment is maintained by bumpy.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@theoephraim
theoephraim merged commit 818fc66 into main Apr 15, 2026
2 checks passed
@theoephraim theoephraim changed the title Fix version PR not triggering CI checks Support custom token for triggering CI on version PRs Apr 15, 2026
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