aliwatters/Auto-Update PR Branches

Automatically update open PR branches when the base branch advances. Prevents stalled auto-merge from strict branch protection.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
tokenGitHub token with contents:write and pull-requests:write permissionsno${{ github.token }}
filterWhich PRs to update. Options: all - Every open non-draft PR auto-merge - Only PRs with auto-merge enabled label - Only PRs with the configured label auto-merge+label - PRs with auto-merge OR the label (default) noall
labelLabel name for opt-in filtering (used when filter includes 'label')noautomerge
update-modeHow many PRs to update per run. Options: all - Update all eligible PRs (may cause CI stampede) next - Update only the next PR to merge (sequential, CI-efficient) test-branch - Create merge-test branches instead of modifying PR branches noall
cancel-stale-ciCancel in-progress/queued CI runs on branches being updated (they test stale code)notrue
ci-workflowWorkflow filename for stale CI cancellation (empty = cancel all workflows on that branch)no""
conflict-labelLabel to add when a PR has merge conflicts (empty = skip labeling)noneeds-rebase
conflict-commentPost a comment on PRs with merge conflicts explaining how to resolvenotrue
exclude-labelsComma-separated list of labels that exclude a PR from being updatednowip,do-not-merge
max-updatesMaximum number of PRs to update per run (0 = unlimited). Useful for rate limiting.no0
priority-labelsComma-separated label-to-priority mappings. Format: label=weight (higher weight = updated first). Default priorities: critical=100, high=75, medium=50, low=25. PRs without a priority label get weight 0. Repos can override via .github/auto-update.yml config file (see README). no""
config-filePath to repo config file for label mappings and settings (requires checkout step)no.github/auto-update.yml
test-branch-prefixBranch prefix for test-branch mode (default: merge-test)nomerge-test
status-contextCommit status context name for test-branch mode (default: merge-test)nomerge-test
namedescription
updatedNumber of PRs whose branches were updated
conflictsNumber of PRs with merge conflicts
skippedNumber of PRs already up to date
summaryHuman-readable summary of what happened