GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - vspiewak/gh-auto-updater: Mass pull requests across a repo fleet (27,000+ opened)

BranchesTags
Open more actions menu

Latest commit

 

History

17 Commits
17 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
auto-updater
auto-updater
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 

Repository files navigation

GitHub Auto Updater šŸ¤–

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

How it works

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-updater label → 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.

Quick start šŸš€

  1. Fork this repo
  2. Set GITHUB_ORG in auto-updater/run.sh to your username or org
  3. Create a PAT with repo scope and add it as the GH_AUTO_UPDATER_SECRET Actions secret
  4. Go to Actions → ✨ Auto Updater → Run workflow, target one of your repos, pick add-todo-md
  5. 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 🄠

Write your own updater

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.

About

Mass pull requests across a repo fleet (27,000+ opened)

vspiewak.com/gh-auto-updater-mass-pull-requests-across-a-repo-fleet

Topics

bashcicicdgithub-actions

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.