feat: optional automerge_pat secret so bot merges trigger push workflows#111
Merged
Conversation
|
Coverage Floor — mode:
|
|
No issues found. Optional PAT fallback ( |
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.
GITHUB_TOKEN-enabled auto-merge produces bot-attributed merge commits, which trigger NO push workflows on the caller repo — no CI, no deploys (GitHub recursion guard; already a banked fleet lesson). On whois-api-llc/wxa-astro this hid a lint break and skipped prod deploys three times in one night once dependabot automerge went live.
This adds an optional
automerge_patsecret to the reusable. When the caller maps it,gh pr merge --autoruns under the PAT, the eventual merge commit is attributed to the PAT owner, and the caller's push workflows fire like any human merge. Fallback is unchangedGITHUB_TOKENbehavior — existing callers unaffected. The fetch-metadata step deliberately keepsGITHUB_TOKEN.Caller-side companion PR: whois-api-llc/wxa-astro (explicit secret mapping — cross-org
secrets: inheritis a silent no-op).Manual merge per repo policy (PRs to ci-workflows are always manual).
🤖 Generated with Claude Code