fix: remove head -10 cap and update tech-debt problem label (#151)
Remove the head -10 cap from TECH_DEBT_ISSUES so Claude sees all tech-debt issues, not just the first 10. Apply a head -50 guard on the list passed in PROBLEMS to avoid oversized prompts while still feeding far more than the old cap. Update the problem label to drop "max 10 per run" text which contradicted the zero-tech-debt objective. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
716bea9d7c
commit
ff3e790f51
1 changed files with 2 additions and 2 deletions
|
|
@ -220,10 +220,10 @@ if [ -n "$BLOCKER_NUMS" ]; then
|
|||
fi
|
||||
|
||||
# 6. Tech-debt issues needing promotion to backlog (secondary to blockers)
|
||||
TECH_DEBT_ISSUES=$(echo "$ISSUES_JSON" | jq -r '.[] | select(.labels | map(.name) | index("tech-debt")) | "#\(.number) \(.title)"' | head -10)
|
||||
TECH_DEBT_ISSUES=$(echo "$ISSUES_JSON" | jq -r '.[] | select(.labels | map(.name) | index("tech-debt")) | "#\(.number) \(.title)"')
|
||||
if [ -n "$TECH_DEBT_ISSUES" ]; then
|
||||
TECH_DEBT_COUNT=$(echo "$TECH_DEBT_ISSUES" | wc -l)
|
||||
PROBLEMS="${PROBLEMS}tech_debt_promotion: ${TECH_DEBT_COUNT} tech-debt issues need promotion to backlog (max 10 per run):\n${TECH_DEBT_ISSUES}\n"
|
||||
PROBLEMS="${PROBLEMS}tech_debt_promotion: ${TECH_DEBT_COUNT} tech-debt issues need processing (goal: zero tech-debt):\n$(echo "$TECH_DEBT_ISSUES" | head -50)\n"
|
||||
fi
|
||||
|
||||
PROBLEM_COUNT=$(echo -e "$PROBLEMS" | grep -c '.' || true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue