fixed return of next-issue agent

This commit is contained in:
Pit Friedrich
2026-07-25 19:47:05 +02:00
parent d10efd5beb
commit 37606bf304
+2 -2
View File
@@ -18,8 +18,8 @@ process_next() {
# 1) Nächstes Issue holen (Sub-Agent, minimaler Output) # 1) Nächstes Issue holen (Sub-Agent, minimaler Output)
local out local out
out=$(claude -p "Nutze den Sub-Agent 'next-issue'." \ out=$(claude -p "Nutze den Sub-Agent 'next-issue'. Gib NUR dessen Rueckgabezeile aus (ISSUE=<nr> oder ISSUE=NONE), keinen weiteren Text." \
--allowedTools "mcp__gitea__list_issues,mcp__gitea__issue_read" \ --allowedTools "Agent,mcp__gitea__list_issues,mcp__gitea__issue_read" \
--output-format text) --output-format text)
local nr local nr
nr=$(echo "$out" | grep -oE 'ISSUE=[0-9NONE]+' | cut -d= -f2) nr=$(echo "$out" | grep -oE 'ISSUE=[0-9NONE]+' | cut -d= -f2)