feat: add setup-target-repo.sh label bootstrap - #6
Merged
Conversation
Automate the scriptable part of onboarding a target repo: create the loop labels (ready, round-0..3, needs-human) idempotently from one command, and print the manual follow-ups (branch protection, CI, Claude GitHub App, Codex) pointing at templates/repo-setup.md. - scripts/setup-target-repo.sh: parameterized <owner>/<repo>, no hardcoded repo; usage + non-zero exit on missing arg; create-or-edit so re-runs don't fail; shellcheck-clean; executable. - templates/repo-setup.md: labels step now calls the script. - README.md: add scripts/ to the Layout block. Closes #5 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Owner
Author
|
🤖 Codex reviewer (gpt-5.5) — automated cross-vendor review vs Verdict: no actionable correctness issues. No blocking comments → ready for the human merge gate. Verified during review:
Reviewer = Codex · coder = Claude — cross-vendor decorrelation. Converged at round-0 (no revisions needed). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #5
What
Adds
scripts/setup-target-repo.shto bootstrap a target repo's loop labels(
ready,round-0..round-3,needs-human) with one command, and points thedocs at it.
Why
Onboarding a new target repo currently means hand-running a
gh label createloop from
templates/repo-setup.md. Scripting the labels step makes adding arepo one command, supporting the reusability goal in
CLAUDE.md.How
scripts/setup-target-repo.sh#!/usr/bin/env bash,set -euo pipefail, executable bit set.<owner>/<repo>(no hardcoded repo); prints usage andexits non-zero if the arg is missing.
gh label create ... || gh label edit ...so re-runs on arepo that already has the labels update rather than fail.
protection, CI workflow, Claude GitHub App, Codex reviewer) and points to
templates/repo-setup.md.templates/repo-setup.md: labels step now references the script instead ofthe inline loop.
README.md:scripts/added to the Layout block.How verified
shellcheck scripts/setup-target-repo.sh→ clean (exit 0), installed locally.bash -nparse check passes.Scope is label bootstrap only — no branch-protection / CI / GitHub-App / Codex
automation (out of scope per the issue).