From 1a4076ac63abf7017775e78293cf48f99cb07153 Mon Sep 17 00:00:00 2001 From: aien-dev Date: Thu, 1 Oct 2026 13:06:17 -0500 Subject: [PATCH 1/2] ci: automerge becomes opt-in (manual dispatch only); by-the-book inspection before any merge Co-Authored-By: Claude Fable 5.1 --- .github/workflows/automerge.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index 178b7459..331e66ed 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -1,12 +1,16 @@ name: automerge -# Pipeline-driven merging: any push to a non-main branch gets built, gets a PR +# Opt-in merging (hive rule 2026-10-01): nothing merges without an inspector verdict. +# This workflow now runs only when started by hand (workflow_dispatch) for a named +# branch; it no longer fires on every push. Former behavior: any push to a non-main branch got built, got a PR # opened against main if none exists, and is merged once the build passes. # This keeps work flowing to main instead of leaving branches unmerged. on: - push: - branches-ignore: - - main + workflow_dispatch: + inputs: + branch: + description: branch to build and merge (only after an inspector VERDICT: merge) + required: true permissions: contents: write @@ -23,7 +27,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.ref_name }} + ref: ${{ inputs.branch }} fetch-depth: 0 - name: Run verification test suite run: cargo test --verbose --manifest-path crates/site-builder/Cargo.toml @@ -34,7 +38,7 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | set -euo pipefail - BRANCH="${{ github.ref_name }}" + BRANCH="${{ inputs.branch }}" PR_NUMBER="$(gh pr list --head "$BRANCH" --base main --json number --jq '.[0].number // empty')" if [ -z "$PR_NUMBER" ]; then PR_URL="$(gh pr create --base main --head "$BRANCH" \ From 4c58d4ddfb11e3f2eb80264074f3dd98f716b602 Mon Sep 17 00:00:00 2001 From: aien-dev Date: Thu, 1 Oct 2026 13:09:17 -0500 Subject: [PATCH 2/2] ci: quote dispatch input description (colon broke YAML parse) Co-Authored-By: Claude Fable 5.1 --- .github/workflows/automerge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index 331e66ed..781032f7 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -9,7 +9,7 @@ on: workflow_dispatch: inputs: branch: - description: branch to build and merge (only after an inspector VERDICT: merge) + description: "branch to build and merge (only after an inspector VERDICT merge)" required: true permissions: