feat(scripts): add new-smartwatermelon-repo.sh one-command bootstrap - #100
Merged
Merged
Conversation
Part C of the fleet reusable-workflows plan: closes the "new repo automatically gets everything" gap for the smartwatermelon User account, where org-only mechanisms (workflow-templates picker, Repository Rulesets) are unavailable. Creates from the new smartwatermelon/repo-template template repo, then sets can_approve_pull_request_reviews=true (issue #87) since a template repo can't seed that setting. Verified end-to-end: ran the script against a real disposable test repo, confirmed all three workflow files and dependabot.yml landed and the permission setting took effect. Also corrects a stale README line claiming Repository Rulesets for nightowlstudiollc are "(planned)" -- that rollout was attempted and rolled back; a re-attempt isn't currently planned and would need its own review given that history.
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.
Summary
Part C of the fleet reusable-workflows plan (see
~/.claude/plans/glittery-percolating-mist.md).smartwatermelonis a User account, so it can't use GitHub's org-only workflow-templates picker or Repository Rulesets to auto-attach anything on repo creation. This closes that gap with the best available mechanism: a real GitHub template repo (smartwatermelon/repo-template, already created and flagged) plus a wrapper script that also sets the one repo setting a template can't seed.What's new
new-smartwatermelon-repo.sh—gh repo create --template smartwatermelon/repo-template, then setscan_approve_pull_request_reviews=true(issue dependabot-auto-merge is inert in 29/51 fleet repos: can_approve_pull_request_reviews unset by installer #87), then prints a reminder thatCLAUDE_CODE_OAUTH_TOKENstill needs a manual/install-github-apprun (no way to script that).smartwatermelon/repo-template(separate repo, already live) shipsclaude.yml,claude-code-review.yml,dependabot-auto-merge.yml,.github/dependabot.yml, and a starterCLAUDE.md.Verification
Ran the script end-to-end against a real disposable test repo (
smartwatermelon/zz-test-delete-me, private): confirmed all three workflow files anddependabot.ymllanded via the template, and confirmedcan_approve_pull_request_reviewswas set correctly via the API afterward. Test repo pending manual deletion (my token lacksdelete_reposcope).[skip-claude-review: bulk-install]not needed here — this isn't a fleet-wide install PR, just the script's own repo.