fix: fix: dev-poll stale detection should skip vision-labeled issues (#448)
This commit is contained in:
parent
6008697355
commit
bfbf531fcb
1 changed files with 14 additions and 2 deletions
|
|
@ -406,8 +406,19 @@ if [ "$ORPHAN_COUNT" -gt 0 ]; then
|
|||
OPEN_PR=true
|
||||
fi
|
||||
|
||||
# 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 // ""')
|
||||
# Skip vision-labeled issues — they are managed by architect agent, not dev-poll
|
||||
issue_labels=$(curl -sf -H "Authorization: token ${FORGE_TOKEN}" \
|
||||
"${API}/issues/${ISSUE_NUM}" | jq -r '[.labels[].name] | join(",")')
|
||||
if echo "$issue_labels" | grep -q "vision"; then
|
||||
log "issue #${ISSUE_NUM} has 'vision' label — skipping stale detection (managed by architect)"
|
||||
# Skip remaining in-progress checks for vision issues
|
||||
unset ISSUE_NUM
|
||||
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
|
||||
assignee=$(curl -sf -H "Authorization: token ${FORGE_TOKEN}" "${API}/issues/${ISSUE_NUM}" | jq -r '.assignee.login // ""')
|
||||
if [ -n "$assignee" ]; then
|
||||
if [ "$assignee" = "$BOT_USER" ]; then
|
||||
# Check if my PR has review feedback to address before exiting
|
||||
|
|
@ -441,6 +452,7 @@ if [ "$ORPHAN_COUNT" -gt 0 ]; then
|
|||
# Issue assigned to another agent — don't block, fall through to backlog
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# Only proceed with in-progress checks if not blocked by another agent
|
||||
if [ "$BLOCKED_BY_INPROGRESS" = false ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue