Open the same pull request across many repositories ā from one command.
At work, this pattern has opened 27,000+ PRs across a fleet of 2,700+ repos (83% merged, not a single direct push to main).
This repo is the minimal, runnable version : fork it and get your first bot PR in ~10 minutes.
š The full story on the blog : how this ran across a whole fleet
An update is a directory. That's the whole contract :
auto-updater/
āāā run.sh # the launcher (framework, written once)
āāā add-todo-md/ # an updater
ā āāā run.sh # the change itself
ā āāā PR.md # the pitch to humans
āāā add-fortune-md/ # another updater
āāā init.sh # optional : install dependencies
āāā run.sh
āāā PR.md
An updater's run.sh runs inside a fresh clone of each target repo and just... changes files.
Everything else ā cloning, branching, committing, pushing, labeling, opening the PR ā is the launcher's job :
- š± branch
feature/auto-updater-<name>, commit⨠Feature : <name> - ā no-op detection : nothing changed ā no branch, no PR, no noise (updaters must be idempotent)
- šļø stale-branch delete : re-running supersedes the previous PR ā last run wins, no zombies
- š·ļø every PR carries the
š¤ auto-updaterlabel ā free audit trail and free metrics (one search query returns everything the bot ever proposed) ā ļø retry loop with backoff for GitHub's rate limits
One principle rules the design : the bot proposes, humans decide.
No pushes to main, ever ā only labeled, reviewable pull requests.
- Fork this repo
- Set
GITHUB_ORGinauto-updater/run.shto your username or org - Create a PAT with
reposcope and add it as theGH_AUTO_UPDATER_SECRETActions secret - Go to Actions ā ⨠Auto Updater ā Run workflow, target one of your repos, pick
add-todo-md - Watch a labeled, reviewable PR appear on the target repo š
See the results on the demo target : gh-auto-updater-sample-repo ā including a fortune cookie delivered by pull request š„
mkdir auto-updater/my-update $EDITOR auto-updater/my-update/run.sh # the change ā make it idempotent ! $EDITOR auto-updater/my-update/PR.md # the PR description humans will read
Add my-update to the workflow's options list, and you're fleet-ready.