Skip to content

bug(initiative-planner): claude-code-action rejects discussion events — the idea:approved auto-trigger never plans #591

Description

@don-petry

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

  1. Add idea:approved to any Ideas Discussion → planner fires on the discussion event.
  2. 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

  1. 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.
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug reportsdev-leadFor dev-lead agent pickup

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions