Skip to content

Commit 3737cd8

Browse files
catomeanclaude
andauthored
chore(ci): adopt the fleet auto-merge sweep — green PRs merge themselves (#16)
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>
1 parent 69c03fc commit 3737cd8

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/auto-merge.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Auto-merge — nobody is in the merge loop.
2+
#
3+
# Green, ready PRs merge themselves. The policy lives in ONE place for the
4+
# whole fleet — bitbaum/fleet, scripts/ci/auto-merge-sweep.sh — and this file
5+
# only says "run it, with these settings". Added 2026-09-04: this repo had NO
6+
# auto-merge at all, so green PRs sat until a human merged them by hand —
7+
# the docs truth-sweep found five lib repos in that state.
8+
#
9+
# The triggers stay here because they are genuinely per-repo: workflow_run
10+
# must name the CI workflow exactly.
11+
#
12+
# To stop all of this: delete this file, or add a `hold` label to a PR.
13+
name: Auto-merge
14+
15+
on:
16+
workflow_run:
17+
workflows: ["CI"]
18+
types: [completed]
19+
schedule:
20+
- cron: "*/10 * * * *"
21+
workflow_dispatch: {}
22+
23+
# Declared on the CALLER as well as inside the reusable workflow: a called
24+
# workflow's token is capped by what the caller grants.
25+
permissions:
26+
contents: write # merge the PR
27+
pull-requests: write # read PR state, delete the branch
28+
actions: write # dispatch the re-arm workflows
29+
checks: read # statusCheckRollup — only load-bearing on private repos
30+
statuses: read
31+
32+
jobs:
33+
sweep:
34+
uses: bitbaum/fleet/.github/workflows/auto-merge-sweep.yml@main
35+
with:
36+
base_branch: main
37+
ci_workflow: ci.yml
38+
# SPACE-separated: the sweep word-splits this.
39+
rearm_workflows: "ci.yml publish.yml"

0 commit comments

Comments
 (0)