fix(agent): route issue-opened events (event_name is workflow_call in reusable wf)
The shared agent.yml is a reusable (workflow_call) workflow, so on Gitea github.event_name evaluates to 'workflow_call' — not the original 'issues'/ 'issue_comment'. route.sh branched on EVENT == "issues", so issue-opened runs scanned the empty comment body and skipped the @pm fallback, exiting 1 with "no known agent mentioned" (runs #393/#394). Comment runs were unaffected because the @mention lives in $BODY. Discriminate on the comment id (CID) instead, which IS reliably forwarded in the event payload: empty => issue-opened (scan issue body, default @pm), set => comment (scan comment body). Also add .gitignore for .env. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
d8d4ba71c0
commit
b3deee7412
@@ -0,0 +1 @@
|
||||
.env
|
||||
Reference in New Issue
Block a user