From 30b31c76aaceb77fec34ad0f3c98115cb6e2e424 Mon Sep 17 00:00:00 2001 From: openhands Date: Sat, 14 Mar 2026 11:12:27 +0000 Subject: [PATCH] fix: stuck PR detection only matched fix/issue-NNN branches PRs with custom branch names (fix/fitness-factory-address, chore/seed-consolidation) were invisible to priority 1.5. Now also extracts issue number from PR title (#NNN) as fallback. --- dev/dev-poll.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dev/dev-poll.sh b/dev/dev-poll.sh index 0c5950a..edd38e0 100755 --- a/dev/dev-poll.sh +++ b/dev/dev-poll.sh @@ -198,8 +198,12 @@ for i in $(seq 0 $(($(echo "$OPEN_PRS" | jq 'length') - 1))); do PR_BRANCH=$(echo "$OPEN_PRS" | jq -r ".[$i].head.ref") PR_SHA=$(echo "$OPEN_PRS" | jq -r ".[$i].head.sha") - # Extract issue number from branch name (fix/issue-NNN) + # Extract issue number from branch name (fix/issue-NNN) or PR title (#NNN) + PR_TITLE=$(echo "$OPEN_PRS" | jq -r ".[$i].title") STUCK_ISSUE=$(echo "$PR_BRANCH" | grep -oP '(?<=fix/issue-)\d+' || true) + if [ -z "$STUCK_ISSUE" ]; then + STUCK_ISSUE=$(echo "$PR_TITLE" | grep -oP '#\K\d+' | tail -1 || true) + fi [ -z "$STUCK_ISSUE" ] && continue CI_STATE=$(curl -sf -H "Authorization: token ${CODEBERG_TOKEN}" \