Compare commits
1 commit
9a22e407a4
...
ad1acc092e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad1acc092e |
1 changed files with 7 additions and 11 deletions
|
|
@ -496,11 +496,9 @@ fi
|
||||||
if [ "$AGENT_TYPE" = "triage" ]; then
|
if [ "$AGENT_TYPE" = "triage" ]; then
|
||||||
log "Triage post-processing: checking for created issues to label..."
|
log "Triage post-processing: checking for created issues to label..."
|
||||||
|
|
||||||
# Extract issue numbers from Claude output that were created during triage.
|
# Extract issue numbers from Claude output that were created during triage
|
||||||
# Match unambiguous creation patterns: "Created issue #123", "Created #123",
|
# Look for patterns like "Created issue #123" or "harb#123" or "#123" after "create"
|
||||||
# or "harb#123". Do NOT match bare #123 which would capture references in
|
CREATED_ISSUES=$(grep -oE '(Created|created) issue #[0-9]+|harb#[0-9]+|#[0-9]+' \
|
||||||
# the triage summary (e.g., "Decomposed from #5", "cause 1 of 2", etc.).
|
|
||||||
CREATED_ISSUES=$(grep -oE '(Created|created) issue #[0-9]+|(Created|created) #[0-9]+|harb#[0-9]+' \
|
|
||||||
"/tmp/reproduce-claude-output-${ISSUE_NUMBER}.txt" 2>/dev/null | \
|
"/tmp/reproduce-claude-output-${ISSUE_NUMBER}.txt" 2>/dev/null | \
|
||||||
grep -oE '[0-9]+' | sort -u | head -10)
|
grep -oE '[0-9]+' | sort -u | head -10)
|
||||||
|
|
||||||
|
|
@ -508,14 +506,12 @@ if [ "$AGENT_TYPE" = "triage" ]; then
|
||||||
# Get backlog label ID
|
# Get backlog label ID
|
||||||
BACKLOG_ID=$(_label_id "backlog" "#fef2c0")
|
BACKLOG_ID=$(_label_id "backlog" "#fef2c0")
|
||||||
|
|
||||||
if [ -z "$BACKLOG_ID" ]; then
|
|
||||||
log "WARNING: could not get backlog label ID — skipping label enforcement"
|
|
||||||
else
|
|
||||||
for issue_num in $CREATED_ISSUES; do
|
for issue_num in $CREATED_ISSUES; do
|
||||||
|
if [ -n "$BACKLOG_ID" ]; then
|
||||||
_add_label "$issue_num" "$BACKLOG_ID"
|
_add_label "$issue_num" "$BACKLOG_ID"
|
||||||
log "Added backlog label to created issue #${issue_num}"
|
log "Added backlog label to created issue #${issue_num}"
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue