From 088cb5add190702e1f9db14fd28ba95294cfbc21 Mon Sep 17 00:00:00 2001 From: kasun Date: Sat, 21 Nov 2026 15:54:45 +0100 Subject: [PATCH 1/2] chore: allow Claude Code to commit, push and open PRs without a prompt CLAUDE.md already requires an explicit request before committing or opening a PR, so the extra permission prompt only repeated that approval. --- .claude/settings.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.claude/settings.json b/.claude/settings.json index 3e37d41..8fee329 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -23,6 +23,9 @@ "Bash(git add *)", "Bash(git switch *)", "Bash(.claude/scripts/gitea.sh GET *)", + "Bash(.claude/scripts/gitea.sh POST *)", + "Bash(git commit *)", + "Bash(git push *)", "WebFetch(domain:www.pulumi.com)", "WebFetch(domain:github.com)", "WebFetch(domain:raw.githubusercontent.com)", @@ -51,9 +54,6 @@ "Bash(ssh *)", "Bash(scp *)", "Bash(curl *)", - "Bash(git commit *)", - "Bash(git push *)", - "Bash(.claude/scripts/gitea.sh POST *)", "Bash(.claude/scripts/gitea.sh PATCH *)", "Bash(.claude/scripts/gitea.sh PUT *)", "Bash(.claude/scripts/gitea.sh DELETE *)" -- 2.54.1 From 7acf83e68d0811f2888146c7664bf1b9e093e25f Mon Sep 17 00:00:00 2001 From: kasun Date: Sat, 21 Nov 2026 15:56:49 +0100 Subject: [PATCH 2/2] chore: keep the permission prompt for merging PRs --- .claude/scripts/gitea.sh | 4 ++-- .claude/settings.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.claude/scripts/gitea.sh b/.claude/scripts/gitea.sh index efa6b74..5d8e79f 100755 --- a/.claude/scripts/gitea.sh +++ b/.claude/scripts/gitea.sh @@ -7,8 +7,8 @@ # # Scope: used for PRs only (list, open, check CI status, merge after your OK). # Technically it can call any endpoint; CLAUDE.md limits its use to PRs. -# In .claude/settings.json, GET runs without a prompt; POST, PATCH, PUT and -# DELETE (anything that changes something) always ask first. +# In .claude/settings.json, GET and POST (e.g. opening a PR) run without a +# prompt. Merging a PR (POST .../merge), PATCH, PUT and DELETE always ask first. # # Usage: gitea.sh METHOD PATH [BODY] # METHOD GET | POST | PATCH | PUT | DELETE diff --git a/.claude/settings.json b/.claude/settings.json index 8fee329..d471dda 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -54,6 +54,7 @@ "Bash(ssh *)", "Bash(scp *)", "Bash(curl *)", + "Bash(.claude/scripts/gitea.sh POST */merge*)", "Bash(.claude/scripts/gitea.sh PATCH *)", "Bash(.claude/scripts/gitea.sh PUT *)", "Bash(.claude/scripts/gitea.sh DELETE *)" -- 2.54.1