Skip to content

claude: always ask before gh repo create - #42

Merged
technicalpickles merged 2 commits into
mainfrom
gh-repo-create-ask-prompt
Sep 16, 2026
Merged

technicalpickles merged 2 commits into
mainfrom
gh-repo-create-ask-prompt

Conversation

@technicalpickles

Copy link
Copy Markdown
Owner

Summary

  • gh repo create had no allow/ask/deny rule anywhere, so it fell through to the default ask outside auto mode
  • Auto mode routes uncovered commands to a per-action classifier instead of the static permission list, and that classifier let a gh repo create ... --public through with no prompt at all
  • Creating a repo (especially public) is visible-to-others and not meaningfully undone by deleting it afterward, the same class already covered by git push --force/git reset --hard in base.jsonc's ask list, so give it an explicit ask rule to guarantee the prompt in every mode

gh repo create had no allow/ask/deny rule anywhere, so it fell through to
the default ask outside auto mode -- but auto mode routes uncovered
commands to a per-action classifier instead of the static list, and that
classifier let a `gh repo create ... --public` through without a prompt.
Creating a repo is visible-to-others and not meaningfully undone by
deleting it afterward, the same class already covered by git push
--force/reset --hard in base.jsonc's ask list, so give it an explicit ask
rule to guarantee the prompt in every mode.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@technicalpickles
technicalpickles enabled auto-merge (squash) September 16, 2026 18:28
@technicalpickles
technicalpickles merged commit 03eafa2 into main Sep 16, 2026
1 check passed
@technicalpickles
technicalpickles deleted the gh-repo-create-ask-prompt branch September 16, 2026 18:29
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