fixed return of next-issue agent
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user