From 21489c1a176b417f63d6b2b745527a7c8d1a99a5 Mon Sep 17 00:00:00 2001 From: openhands Date: Sat, 21 Mar 2026 10:59:46 +0000 Subject: [PATCH] fix: phase-handler.sh DELETE backlog label uses string 'backlog' not numeric ID (#375) Replace string 'backlog' with $BACKLOG_LABEL_ID in the DELETE label API call at dev-agent.sh:370. The Gitea API expects a numeric label ID in that path segment. The variable is already resolved at the top of the script (line 46-48) and used correctly elsewhere. Co-Authored-By: Claude Opus 4.6 (1M context) --- dev/dev-agent.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/dev-agent.sh b/dev/dev-agent.sh index aec79b4..cc1eba5 100755 --- a/dev/dev-agent.sh +++ b/dev/dev-agent.sh @@ -367,7 +367,7 @@ curl -sf -X POST \ curl -sf -X DELETE \ -H "Authorization: token ${CODEBERG_TOKEN}" \ - "${API}/issues/${ISSUE}/labels/backlog" >/dev/null 2>&1 || true + "${API}/issues/${ISSUE}/labels/${BACKLOG_LABEL_ID}" >/dev/null 2>&1 || true CLAIMED=true