From 7acf83e68d0811f2888146c7664bf1b9e093e25f Mon Sep 17 00:00:00 2001 From: kasun Date: Sat, 21 Nov 2026 15:56:49 +0100 Subject: [PATCH] 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 *)"