Files
CatoandClaude Fable 5.1 7ccc759bb1 chore: rename FleetCrown to Loki (#35)
The product was renamed on 2026-09-14: bitbaum/loki, loki.orangecat.ch,
LOKI_* env keys, loki-* units. This repo referenced the old name in
1 file changed, 1 insertion(+), 1 deletion(-).
Email addresses at the old sending domain stay until the new domain is
verified in Resend.


Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-13 16:33:19 -07:00

61 lines
2.5 KiB
YAML

# 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'
secrets:
# Why a PAT and not the default token: THROUGHPUT.
#
# A dispatch made with GITHUB_TOKEN triggers no workflows — the same rule
# that makes the deploy reconciler necessary. So after the sweep merges a
# PR and re-arms CI, that CI run's completion fires no workflow_run, and
# nothing wakes the sweep to take the next PR. It waits for the cron, and
# GitHub throttles scheduled workflows regardless of what the cron says:
# measured in loki, sweeps land 50-65 minutes apart against */10.
# A PAT-created dispatch does emit workflow_run, so a queue drains at CI
# speed instead.
#
# NOT the reason, though an earlier version of this comment said so:
# "GITHUB_TOKEN cannot merge a PR touching .github/workflows". That is
# contradicted here — github-actions[bot] merged datacat#253 and
# ai-kit#42, both of which change a workflow file. Recorded so the wrong
# reason does not get re-derived from this file.
#
# Undefined resolves to empty and the reusable workflow falls back to
# github.token, so this line is inert until the org secret exists.
token: ${{ secrets.FLEET_PAT }}