mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-07 19:32:17 +00:00
Two new steps wrapped around the existing push/create flow: 1. Dedupe before push: hash the local diff vs origin/<base-branch> and compare against gh pr diff of every open PR (any author, any branch) targeting the same base. On a match, exit 0 without pushing and without creating a PR. This is what stops the same image-version bump from being opened repeatedly. 2. Supersede after create: close every other open PR whose branch starts with UPDATE_BRANCH_PREFIX with a "Superseded by #N." comment. The prefix filter keeps the bot from ever closing repository-refs, skills, or human-authored PRs, even though dedupe itself sees them. CRLF normalization on both sides of the hash compare so a runner that checks out the patch with native-CRLF translation still produces a stable hash. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
GitHub Workflow Helpers 🔧
This directory holds the shell helpers that GitHub Actions workflows under .github/workflows/ call. Helpers are grouped by responsibility into subfolders so each workflow file pulls only from the clusters it actually needs.
Subfolders 🗂️
| Subfolder | Responsibility |
|---|---|
| runner/ | Host-runner hygiene around image builds and deploys (disk, swap, Docker daemon, diagnostics). |
| cancel/ | Cancellation of in-progress workflow runs on PR-close and branch-delete events. |
| resolve/ | Derivation of structured workflow inputs and outputs from repository state. |
| update/ | The scheduled Update: Versions pipeline (version bumps and PR open/refresh). |
| release/ | Release-time gates that decide whether a tagged commit may be released. |
A new helper MUST live in the subfolder that matches its responsibility. New responsibilities MAY motivate a new subfolder, but MUST NOT flatten back into the top level.
For the workflow catalog see workflows.md. For the repository Make target index see make.md.