fix: fix: dev-poll stale detection should skip vision-labeled issues (#448) #461

Merged
dev-bot merged 2 commits from fix/issue-448 into main 2026-04-08 21:14:03 +00:00
Showing only changes of commit 7158bb23d4 - Show all commits

View file

@ -411,12 +411,9 @@ if [ "$ORPHAN_COUNT" -gt 0 ]; then
"${API}/issues/${ISSUE_NUM}" | jq -r '[.labels[].name] | join(",")') "${API}/issues/${ISSUE_NUM}" | jq -r '[.labels[].name] | join(",")')
if echo "$issue_labels" | grep -q "vision"; then if echo "$issue_labels" | grep -q "vision"; then
log "issue #${ISSUE_NUM} has 'vision' label — skipping stale detection (managed by architect)" log "issue #${ISSUE_NUM} has 'vision' label — skipping stale detection (managed by architect)"
# Skip remaining in-progress checks for vision issues BLOCKED_BY_INPROGRESS=true
unset ISSUE_NUM
fi fi
# Only proceed with in-progress checks if not a vision issue
if [ -n "${ISSUE_NUM:-}" ]; then
# Check if issue has an assignee — only block on issues assigned to this agent # Check if issue has an assignee — only block on issues assigned to this agent
assignee=$(curl -sf -H "Authorization: token ${FORGE_TOKEN}" "${API}/issues/${ISSUE_NUM}" | jq -r '.assignee.login // ""') assignee=$(curl -sf -H "Authorization: token ${FORGE_TOKEN}" "${API}/issues/${ISSUE_NUM}" | jq -r '.assignee.login // ""')
if [ -n "$assignee" ]; then if [ -n "$assignee" ]; then
@ -452,7 +449,6 @@ if [ "$ORPHAN_COUNT" -gt 0 ]; then
# Issue assigned to another agent — don't block, fall through to backlog # Issue assigned to another agent — don't block, fall through to backlog
fi fi
fi fi
fi
# Only proceed with in-progress checks if not blocked by another agent # Only proceed with in-progress checks if not blocked by another agent
if [ "$BLOCKED_BY_INPROGRESS" = false ]; then if [ "$BLOCKED_BY_INPROGRESS" = false ]; then