mirror of
https://github.com/bitbaum/threadkit.git
synced 2026-12-05 07:08:29 +01:00
chore(ci): adopt the fleet auto-merge sweep — green PRs merge themselves (#26)
This repo had no auto-merge workflow; green PRs waited for a human. Thin caller of bitbaum/fleet auto-merge-sweep.yml, same as ai-forms. Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 file changed
+39
@@ -0,0 +1,39 @@
|
||||
# Auto-merge — nobody is in the merge loop.
|
||||
#
|
||||
# Green, ready PRs merge themselves. The policy lives in ONE place for the
|
||||
# whole fleet — bitbaum/fleet, scripts/ci/auto-merge-sweep.sh — and this file
|
||||
# only says "run it, with these settings". Added 2026-09-04: this repo had NO
|
||||
# auto-merge at all, so green PRs sat until a human merged them by hand —
|
||||
# the docs truth-sweep found five lib repos in that state.
|
||||
#
|
||||
# The triggers stay here because they are genuinely per-repo: workflow_run
|
||||
# must name the CI workflow exactly.
|
||||
#
|
||||
# To stop all of this: delete this file, or add a `hold` label to a PR.
|
||||
name: Auto-merge
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ['CI']
|
||||
types: [completed]
|
||||
schedule:
|
||||
- cron: '*/10 * * * *'
|
||||
workflow_dispatch: {}
|
||||
|
||||
# Declared on the CALLER as well as inside the reusable workflow: a called
|
||||
# workflow's token is capped by what the caller grants.
|
||||
permissions:
|
||||
contents: write # merge the PR
|
||||
pull-requests: write # read PR state, delete the branch
|
||||
actions: write # dispatch the re-arm workflows
|
||||
checks: read # statusCheckRollup — only load-bearing on private repos
|
||||
statuses: read
|
||||
|
||||
jobs:
|
||||
sweep:
|
||||
uses: bitbaum/fleet/.github/workflows/auto-merge-sweep.yml@main
|
||||
with:
|
||||
base_branch: main
|
||||
ci_workflow: ci.yml
|
||||
# SPACE-separated: the sweep word-splits this.
|
||||
rearm_workflows: 'ci.yml publish.yml'
|
||||
Reference in new issue
Block a user