Summary
initiative-planner.yml is wired to fire on on: discussion [labeled] when a maintainer adds idea:approved to an Ideas Discussion (the documented primary path). That path is broken end-to-end: the "Plan the initiative" step uses anthropics/claude-code-action@787c5a0ce96a9a6cfb050ea0c8f4c05f2447c251 # v1.0.133, which aborts with:
##[error]Action failed with error: Unsupported event type: discussion
The action only recognizes issues / pull_request / issue_comment / workflow_dispatch event contexts; discussion is not in its allowlist, so it bails before Bob runs. The label gate works, gather-context.sh succeeds, then the action immediately fails.
Repro
- Add
idea:approved to any Ideas Discussion → planner fires on the discussion event.
- Job reaches Plan the initiative (BMAD Scrum Master) and fails with
Unsupported event type: discussion.
Observed on Discussion #572 (run 27381411218). The workflow_dispatch path is not affected and works — discussion #572 was successfully planned into Epic #581 via:
gh workflow run initiative-planner.yml -f discussion=572 -f dry_run=false
Impact
The documented two-gate flow (idea:approved → planner → initiative:auto) cannot complete automatically. Today the only working path is a manual workflow_dispatch, so a human must hand-dispatch every approved idea — defeating the label-driven automation.
Fix options
- Re-dispatch pattern (no upstream dependency, recommended): keep
on: discussion [labeled], but in that event the job only resolves the discussion number and re-invokes the workflow via workflow_dispatch (gh workflow run … -f discussion=<n> -f dry_run=false). The action then runs under a supported event. Cleanest decoupling; the label stays the human gate.
- Bump
claude-code-action to a SHA that supports discussion events (or fully skips event-context parsing when an explicit prompt: is supplied). Needs verification that such a release exists; SHA must be looked up via the GitHub API per CLAUDE.md.
Option 1 is self-contained in this repo and provider-version-independent.
Notes
Summary
initiative-planner.ymlis wired to fire onon: discussion [labeled]when a maintainer addsidea:approvedto an Ideas Discussion (the documented primary path). That path is broken end-to-end: the "Plan the initiative" step usesanthropics/claude-code-action@787c5a0ce96a9a6cfb050ea0c8f4c05f2447c251 # v1.0.133, which aborts with:The action only recognizes
issues/pull_request/issue_comment/workflow_dispatchevent contexts;discussionis not in its allowlist, so it bails before Bob runs. The label gate works,gather-context.shsucceeds, then the action immediately fails.Repro
idea:approvedto any Ideas Discussion → planner fires on thediscussionevent.Unsupported event type: discussion.Observed on Discussion #572 (run
27381411218). Theworkflow_dispatchpath is not affected and works —discussion #572was successfully planned into Epic #581 via:Impact
The documented two-gate flow (
idea:approved→ planner →initiative:auto) cannot complete automatically. Today the only working path is a manualworkflow_dispatch, so a human must hand-dispatch every approved idea — defeating the label-driven automation.Fix options
on: discussion [labeled], but in that event the job only resolves the discussion number and re-invokes the workflow viaworkflow_dispatch(gh workflow run … -f discussion=<n> -f dry_run=false). The action then runs under a supported event. Cleanest decoupling; the label stays the human gate.claude-code-actionto a SHA that supportsdiscussionevents (or fully skips event-context parsing when an explicitprompt:is supplied). Needs verification that such a release exists; SHA must be looked up via the GitHub API per CLAUDE.md.Option 1 is self-contained in this repo and provider-version-independent.
Notes
gather-context.sh(hard-fails on Discussion-number#NNNrefs via RESTissues/NNN) is being handled in another session — not this issue..github/workflows/initiative-planner.yml; action pin at thePlan the initiativestep.