Skip to content

feat(scripts): add new-smartwatermelon-repo.sh one-command bootstrap - #100

Merged
twistedmelonman merged 1 commit into
mainfrom
claude/new-smartwatermelon-repo-script-c1
Aug 7, 2026
Merged

feat(scripts): add new-smartwatermelon-repo.sh one-command bootstrap#100
twistedmelonman merged 1 commit into
mainfrom
claude/new-smartwatermelon-repo-script-c1

Conversation

@twistedmelonman

Copy link
Copy Markdown
Member

Summary

Part C of the fleet reusable-workflows plan (see ~/.claude/plans/glittery-percolating-mist.md). smartwatermelon is 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.shgh repo create --template smartwatermelon/repo-template, then sets can_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 that CLAUDE_CODE_OAUTH_TOKEN still needs a manual /install-github-app run (no way to script that).
  • smartwatermelon/repo-template (separate repo, already live) ships claude.yml, claude-code-review.yml, dependabot-auto-merge.yml, .github/dependabot.yml, and a starter CLAUDE.md.
  • README: new section documenting the script, plus a correction to a stale line that called the NightOwl Repository Ruleset "(planned)" — that rollout was attempted and rolled back; a re-attempt isn't currently planned.

Verification

Ran the script end-to-end against a real disposable test repo (smartwatermelon/zz-test-delete-me, private): confirmed all three workflow files and dependabot.yml landed via the template, and confirmed can_approve_pull_request_reviews was set correctly via the API afterward. Test repo pending manual deletion (my token lacks delete_repo scope).

[skip-claude-review: bulk-install] not needed here — this isn't a fleet-wide install PR, just the script's own repo.

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.
@twistedmelonman
twistedmelonman merged commit 2d38298 into main Aug 7, 2026
4 checks passed
@twistedmelonman
twistedmelonman deleted the claude/new-smartwatermelon-repo-script-c1 branch August 8, 2026 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant