Skip to content

ci: let green PRs merge and deploy themselves - #7

Merged
catomean merged 2 commits into
mainfrom
ci/auto-merge
Aug 7, 2026
Merged

ci: let green PRs merge and deploy themselves#7
catomean merged 2 commits into
mainfrom
ci/auto-merge

Conversation

@catomean

@catomean catomean commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Why

s-ink has ci.yml and deploy.yml but no auto-merge, so every green PR waits on a human. #6 has been sitting green and CLEAN for exactly that reason. This is the same policy the rest of the fleet runs.

Two things adapted for this repo

1. checks: read + statuses: read — required because s-ink is private. The sweep reads statusCheckRollup to decide whether a PR is green; a public repo answers that with no explicit scope, which is why the copy circulating the fleet omits them and still works in ~20 public repos. On a private repo it fails with Resource not accessible by integration and merges nothing, ever — see bitbaum/ivy-portal#4, where that went unnoticed for days. Fixed at source in bitbaum/dotfiles#6.

2. REARM_WORKFLOWS: ci.yml deploy.yml — not just ci.yml. Deploy here triggers on push: [main], and a merge made with the default GITHUB_TOKEN does not cascade into other workflows. Without re-arming Deploy explicitly, this repo would merge PRs correctly and then silently never ship them. FleetCrown hit exactly that and needed a reconciler to dig out.

Effect

A green, non-draft PR merges itself and reaches the box. Hold work back with a draft PR or a hold / no-automerge / do-not-merge / wip label.

🤖 Generated with Claude Code

@catomean
catomean merged commit 60b88c1 into main Aug 7, 2026
1 check passed
@catomean
catomean deleted the ci/auto-merge branch August 7, 2026 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant