From 7cc9fb34275a0f8a9e6e77acfbc6f70475d4a28e Mon Sep 17 00:00:00 2001 From: JY Tan Date: Mon, 2 Feb 2026 12:06:55 -0800 Subject: [PATCH] Add gh CLI commands to `code` template --- internal/templates/code.json | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/internal/templates/code.json b/internal/templates/code.json index 16ab468..72d2212 100644 --- a/internal/templates/code.json +++ b/internal/templates/code.json @@ -176,7 +176,31 @@ "gem push", // Privilege escalation - "sudo" + "sudo", + + // GitHub CLI commands that modify remote state + "gh pr create", + "gh pr merge", + "gh pr close", + "gh pr reopen", + "gh pr review", + "gh pr comment", + "gh release create", + "gh release delete", + "gh repo create", + "gh repo fork", + "gh repo delete", + "gh issue create", + "gh issue close", + "gh issue comment", + "gh gist create", + "gh workflow run", + "gh api", + "gh auth login", + "gh secret set", + "gh secret delete", + "gh variable set", + "gh variable delete" ] } }