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 3e37d41..d471dda 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,7 @@ "Bash(ssh *)", "Bash(scp *)", "Bash(curl *)", - "Bash(git commit *)", - "Bash(git push *)", - "Bash(.claude/scripts/gitea.sh POST *)", + "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 *)"