You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
##[error]Action failed with error: Unsupported event type: discussion
anthropics/claude-code-action aborts on discussion event contexts, and feature-ideation has no redispatch bridge (unlike initiative-planner). So when a human opens a new Idea, the enhancement crashes before posting anything — no new idea is ever enhanced on creation. Pre-existing (the discussion-trigger enhancement added in #629/#805 never actually worked); surfaced by the #875 validation (failed run: https://github.com/petry-projects/.github-private/actions/runs/28290846519, event=discussion).
The enhance_backlog sweep and scheduled runs are fine (they run under workflow_dispatch).
Restructure the active stub.github/workflows/feature-ideation.yml (this repo) so the discussion: created path re-dispatches to workflow_dispatch instead of calling the reusable directly:
Add a target_discussion input to the stub's workflow_dispatch inputs (string, default '').
Add a redispatch job that runs only on discussion events: guard category.slug == 'ideas' && user.type != 'Bot', require GH_PAT_WORKFLOWS (a dispatch fired with GITHUB_TOKEN never starts a run — same constraint as scripts/initiative-planner/redispatch.sh), then gh workflow run feature-ideation.yml -f target_discussion=${{ github.event.discussion.number }}.
Make the existing ideate job (the uses: reusable call) run only on workflow_dispatch/schedule, and source target_discussion from inputs.target_discussion (so single-idea mode works under the dispatched run, where claude-code-action is supported).
Reference implementation: .github/workflows/initiative-planner.yml (the redispatch job) + scripts/initiative-planner/redispatch.sh.
Acceptance criteria
Creating a new human-authored Ideas Discussion results in exactly one enhancement comment in single-idea mode, carrying the canonical <!-- feature-ideation:enhanced --> marker — with noUnsupported event type: discussion crash.
Bot-authored / non-ideas discussions are not redispatched (guard holds).
bats coverage asserts the redispatch job exists, is guarded, and forwards target_discussion.
The org template petry-projects/.github : standards/workflows/feature-ideation.yml needs the same bridge so other repos inherit it — a maintainer raises that PR (dev-lead can't write the public repo). This issue fixes the next-ring (.github-private) stub, which is what #875 validates.
Problem (confirmed)
feature-ideation's
discussion: createdsingle-idea enhancement crashes with:anthropics/claude-code-actionaborts ondiscussionevent contexts, and feature-ideation has no redispatch bridge (unlike initiative-planner). So when a human opens a new Idea, the enhancement crashes before posting anything — no new idea is ever enhanced on creation. Pre-existing (thediscussion-trigger enhancement added in #629/#805 never actually worked); surfaced by the #875 validation (failed run: https://github.com/petry-projects/.github-private/actions/runs/28290846519, event=discussion).The
enhance_backlogsweep and scheduled runs are fine (they run underworkflow_dispatch).Fix — mirror the initiative-planner #618 bridge
Restructure the active stub
.github/workflows/feature-ideation.yml(this repo) so thediscussion: createdpath re-dispatches toworkflow_dispatchinstead of calling the reusable directly:target_discussioninput to the stub'sworkflow_dispatchinputs (string, default '').redispatchjob that runs only ondiscussionevents: guardcategory.slug == 'ideas' && user.type != 'Bot', requireGH_PAT_WORKFLOWS(a dispatch fired withGITHUB_TOKENnever starts a run — same constraint asscripts/initiative-planner/redispatch.sh), thengh workflow run feature-ideation.yml -f target_discussion=${{ github.event.discussion.number }}.ideatejob (theuses:reusable call) run only onworkflow_dispatch/schedule, and sourcetarget_discussionfrominputs.target_discussion(so single-idea mode works under the dispatched run, where claude-code-action is supported).Reference implementation:
.github/workflows/initiative-planner.yml(theredispatchjob) +scripts/initiative-planner/redispatch.sh.Acceptance criteria
<!-- feature-ideation:enhanced -->marker — with noUnsupported event type: discussioncrash.ideasdiscussions are not redispatched (guard holds).batscoverage asserts the redispatch job exists, is guarded, and forwardstarget_discussion.Cross-repo follow-on (not this issue)
The org template
petry-projects/.github : standards/workflows/feature-ideation.ymlneeds the same bridge so other repos inherit it — a maintainer raises that PR (dev-lead can't write the public repo). This issue fixes the next-ring (.github-private) stub, which is what #875 validates.Blocks #876 (deprecate idea-enhancer). Refs #875, #934, #872.