feat: implement issue #591 — bug(initiative-planner): claude-code-action rejects discussion events — the idea:approved auto-trigger never plans - #618
Conversation
…ion rejects `discussion` events — the `idea:approved` auto-trigger never plans
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reached
More reviews will be available in 56 minutes and 52 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more credits in the billing tab to continue. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request introduces redispatch.sh to bridge the discussion [labeled] event to a workflow_dispatch event, addressing a limitation where claude-code-action does not support discussion event contexts. It also adds a comprehensive BATS test suite for the script and updates the README documentation. The review feedback suggests enhancing redispatch.sh to support the DRY_RUN environment variable and branch-specific dispatching via GITHUB_REF (to enable testing on feature branches), along with adding corresponding unit tests for these new features.
Dev-Lead — fix-reviews (applied)Changes committed and pushed. |
Dev-Lead — waiting on PR blockers (intent: review-changes)PR: #618 |
|
Note @don-petry I reviewed this PR and no code changes were needed, but it still has blocking checks or reviews (failing or cancelled checks, or changes-requested reviews), so I cannot mark it done yet. I'll re-check automatically. |
donpetry-bot
left a comment
There was a problem hiding this comment.
Automated review — APPROVED ✓
Risk: MEDIUM
Reviewed commit: 3cb14827759d6ed2b8bccb8523f71cabbc23796c
Review mode: triage-approved (single reviewer)
Summary
Implements the re-dispatch bridge (fix option 1 from issue #591): a new redispatch job catches the discussion[labeled] idea:approved event and re-invokes the planner via workflow_dispatch, where claude-code-action runs cleanly. Includes a new validated shell script, 10 BATS tests wired into lint.yml, and README updates. Triage cleared this as low-risk; I rate it MEDIUM (workflow change consuming an existing PAT secret) but it is safe — gated on a maintainer-applied label, minimal permissions, no injection vectors.
Linked issue analysis
Issue #591 reports the idea:approved auto-trigger never plans because claude-code-action rejects discussion event contexts. This PR implements exactly the recommended option 1 (re-dispatch pattern, no upstream dependency): the plan job is now workflow_dispatch-only and the new redispatch job bridges the discussion event. The label remains the human gate. Substantively addressed.
Findings
Security (no blockers):
GH_PAT_WORKFLOWSusage follows the established pattern (identical PAT-guard asinitiative-driver.yml:63-72); the secret is already consumed by 8+ workflows in this repo.- Trigger is gated on a maintainer-applied
idea:approveddiscussion label (triage+ permission required), so the PAT path is not reachable by arbitrary users. DISCUSSION_NUMBERis passed via env (not inline interpolation) and regex-validated (^[0-9]+$) before reaching theghcommand line — injection-safe, with a BATS test covering the injection case.- Redispatch job:
contents: readonly,persist-credentials: false, SHA-pinned checkout, 5-min timeout. Top-levelpermissions: {}retained.
Correctness:
workflow_dispatchinputsdiscussion/dry_runalready exist in the workflow; redispatch correctly dispatchesdry_run=falsefor the auto path.- Concurrency group keys on the same discussion number for both events with
cancel-in-progress: false;gh workflow runis fire-and-forget so no deadlock. --refis only forwarded for branch/tag refs (discussion events run from the default branch), correctly skippingrefs/pull/*.
Review threads: Both gemini-code-assist threads (DRY_RUN support, GITHUB_REF support, and tests for both) were addressed in commit 3cb1482 and are resolved.
CI status
All material checks green: shellcheck, bats (incl. the 10 new tests), CodeQL (actions+python), gitleaks, AgentShield, Agent Security Scan, SonarCloud quality gate, unit-tests, gh-aw-compile, validate-agent-profiles. One CANCELLED 'review / review' check run was superseded ~20s later by a successful run of the same check on this head SHA.
Reviewed automatically by the PR-review agent (single-reviewer mode: fable 5). Reply if you need a human review.
|
donpetry-bot
left a comment
There was a problem hiding this comment.
Automated review — APPROVED ✓
Risk: MEDIUM
Reviewed commit: 9615a63996998aca02da3889d3eed71355df0da3
Review mode: triage-approved (single reviewer)
Summary
Re-confirmation review at the new head SHA (merge of main into the branch). The PR implements the re-dispatch bridge (fix option 1 from issue #591): a new redispatch job catches the discussion[labeled] idea:approved event and re-invokes the planner via workflow_dispatch, where claude-code-action runs cleanly. The only delta since the previously approved commit (3cb1482) is a merge of main bringing in unrelated changes from PR #609 (scripts/lib/ci-status.sh, tests/test_ci_status.bats) — no changes to this PR's own files. Triage cleared this as low-risk; I rate it MEDIUM (workflow change consuming an existing PAT secret) but it is safe.
Linked issue analysis
Issue #591 reports the idea:approved auto-trigger never plans because claude-code-action rejects discussion event contexts. This PR implements exactly the recommended option 1 (re-dispatch pattern, no upstream dependency): the plan job is now workflow_dispatch-only and the new redispatch job bridges the discussion event by resolving the discussion number and firing gh workflow run with the PAT. The idea:approved label remains the human gate. Substantively addressed.
Findings
Delta since prior approved review (3cb1482): merge commit 9615a63 only pulls main forward (PR #609 files); the PR's own diff is byte-identical to what was already approved.
Security (no blockers):
- GH_PAT_WORKFLOWS usage follows the established pattern (same PAT-guard as initiative-driver); secret already consumed by other workflows in this repo.
- Trigger gated on a maintainer-applied idea:approved discussion label, so the PAT path is not reachable by arbitrary users.
- DISCUSSION_NUMBER passed via env (not inline interpolation) and regex-validated (^[0-9]+$) before reaching the gh command line — injection-safe, with a BATS test covering the injection case.
- Redispatch job: contents: read only, persist-credentials: false, SHA-pinned checkout, 5-min timeout.
Correctness:
- workflow_dispatch inputs discussion/dry_run already exist; redispatch dispatches dry_run=false for the auto path and honors DRY_RUN=1/true.
- --ref only forwarded for branch/tag refs, correctly skipping refs/pull/*.
- 10 BATS tests wired into lint.yml and passing.
Review threads: Both gemini-code-assist threads are resolved (verified via GraphQL). No human-reviewer questions outstanding.
CI status
All material checks green at head SHA 9615a63: shellcheck, bats (incl. the new redispatch tests), CodeQL (actions+python), gitleaks, AgentShield, Agent Security Scan, SonarCloud quality gate (0 new issues, 0 hotspots), unit-tests, gh-aw-compile, validate-agent-profiles, Lint. Three CANCELLED check runs (dev-lead/dispatch, dev-lead/ci-relay, review/review) were concurrency-superseded and each has a later SUCCESS run of the same check on this head SHA.
Reviewed automatically by the PR-review agent (single-reviewer mode: fable 5). Reply if you need a human review.
…ion rejects `discussion` events — the `idea:approved` auto-trigger never plans (#618) * feat: implement issue #591 — bug(initiative-planner): claude-code-action rejects `discussion` events — the `idea:approved` auto-trigger never plans * fix(reviews): address review comments [skip ci-relay] --------- Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…ion rejects `discussion` events — the `idea:approved` auto-trigger never plans (#618) * feat: implement issue #591 — bug(initiative-planner): claude-code-action rejects `discussion` events — the `idea:approved` auto-trigger never plans * fix(reviews): address review comments [skip ci-relay] --------- Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…tch bridge (#654) * fix(initiative-planner): restore discussion→workflow_dispatch redispatch bridge PR #618 (issue #591) fixed the `idea:approved` auto-trigger: claude-code-action aborts with "Unsupported event type: discussion", so the planner re-invokes itself via workflow_dispatch through a `redispatch` bridge job. PR #606 (an unrelated pr-review change) was branched off main before #618 landed and, on merge, silently reverted the fix — deleting the redispatch job, redispatch.sh, and its bats test, and restoring the broken direct-on-discussion `if`. As a result, labelling a Discussion `idea:approved` (e.g. #650) again failed with "Unsupported event type: discussion" and never planned. Restore #618 verbatim, preserving the current claude-code-action v1.0.148 pin: - re-add the `redispatch` job; `plan` runs only on workflow_dispatch - restore scripts/initiative-planner/redispatch.sh - restore tests/test_initiative_planner_redispatch.bats - restore the README rows for redispatch.sh and its test https://claude.ai/code/session_01WRJisJyfNK2CuR4f1n9cao * chore: apply manual instructions [skip ci-relay] --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…ion rejects `discussion` events — the `idea:approved` auto-trigger never plans (#618) * feat: implement issue #591 — bug(initiative-planner): claude-code-action rejects `discussion` events — the `idea:approved` auto-trigger never plans * fix(reviews): address review comments [skip ci-relay] --------- Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…tch bridge (#654) * fix(initiative-planner): restore discussion→workflow_dispatch redispatch bridge PR #618 (issue #591) fixed the `idea:approved` auto-trigger: claude-code-action aborts with "Unsupported event type: discussion", so the planner re-invokes itself via workflow_dispatch through a `redispatch` bridge job. PR #606 (an unrelated pr-review change) was branched off main before #618 landed and, on merge, silently reverted the fix — deleting the redispatch job, redispatch.sh, and its bats test, and restoring the broken direct-on-discussion `if`. As a result, labelling a Discussion `idea:approved` (e.g. #650) again failed with "Unsupported event type: discussion" and never planned. Restore #618 verbatim, preserving the current claude-code-action v1.0.148 pin: - re-add the `redispatch` job; `plan` runs only on workflow_dispatch - restore scripts/initiative-planner/redispatch.sh - restore tests/test_initiative_planner_redispatch.bats - restore the README rows for redispatch.sh and its test https://claude.ai/code/session_01WRJisJyfNK2CuR4f1n9cao * chore: apply manual instructions [skip ci-relay] --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…tch bridge (#654) * fix(initiative-planner): restore discussion→workflow_dispatch redispatch bridge PR #618 (issue #591) fixed the `idea:approved` auto-trigger: claude-code-action aborts with "Unsupported event type: discussion", so the planner re-invokes itself via workflow_dispatch through a `redispatch` bridge job. PR #606 (an unrelated pr-review change) was branched off main before #618 landed and, on merge, silently reverted the fix — deleting the redispatch job, redispatch.sh, and its bats test, and restoring the broken direct-on-discussion `if`. As a result, labelling a Discussion `idea:approved` (e.g. #650) again failed with "Unsupported event type: discussion" and never planned. Restore #618 verbatim, preserving the current claude-code-action v1.0.148 pin: - re-add the `redispatch` job; `plan` runs only on workflow_dispatch - restore scripts/initiative-planner/redispatch.sh - restore tests/test_initiative_planner_redispatch.bats - restore the README rows for redispatch.sh and its test https://claude.ai/code/session_01WRJisJyfNK2CuR4f1n9cao * chore: apply manual instructions [skip ci-relay] --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…tch bridge (#654) * fix(initiative-planner): restore discussion→workflow_dispatch redispatch bridge PR #618 (issue #591) fixed the `idea:approved` auto-trigger: claude-code-action aborts with "Unsupported event type: discussion", so the planner re-invokes itself via workflow_dispatch through a `redispatch` bridge job. PR #606 (an unrelated pr-review change) was branched off main before #618 landed and, on merge, silently reverted the fix — deleting the redispatch job, redispatch.sh, and its bats test, and restoring the broken direct-on-discussion `if`. As a result, labelling a Discussion `idea:approved` (e.g. #650) again failed with "Unsupported event type: discussion" and never planned. Restore #618 verbatim, preserving the current claude-code-action v1.0.148 pin: - re-add the `redispatch` job; `plan` runs only on workflow_dispatch - restore scripts/initiative-planner/redispatch.sh - restore tests/test_initiative_planner_redispatch.bats - restore the README rows for redispatch.sh and its test https://claude.ai/code/session_01WRJisJyfNK2CuR4f1n9cao * chore: apply manual instructions [skip ci-relay] --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…tch bridge (#654) * fix(initiative-planner): restore discussion→workflow_dispatch redispatch bridge PR #618 (issue #591) fixed the `idea:approved` auto-trigger: claude-code-action aborts with "Unsupported event type: discussion", so the planner re-invokes itself via workflow_dispatch through a `redispatch` bridge job. PR #606 (an unrelated pr-review change) was branched off main before #618 landed and, on merge, silently reverted the fix — deleting the redispatch job, redispatch.sh, and its bats test, and restoring the broken direct-on-discussion `if`. As a result, labelling a Discussion `idea:approved` (e.g. #650) again failed with "Unsupported event type: discussion" and never planned. Restore #618 verbatim, preserving the current claude-code-action v1.0.148 pin: - re-add the `redispatch` job; `plan` runs only on workflow_dispatch - restore scripts/initiative-planner/redispatch.sh - restore tests/test_initiative_planner_redispatch.bats - restore the README rows for redispatch.sh and its test https://claude.ai/code/session_01WRJisJyfNK2CuR4f1n9cao * chore: apply manual instructions [skip ci-relay] --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…tch bridge (#654) * fix(initiative-planner): restore discussion→workflow_dispatch redispatch bridge PR #618 (issue #591) fixed the `idea:approved` auto-trigger: claude-code-action aborts with "Unsupported event type: discussion", so the planner re-invokes itself via workflow_dispatch through a `redispatch` bridge job. PR #606 (an unrelated pr-review change) was branched off main before #618 landed and, on merge, silently reverted the fix — deleting the redispatch job, redispatch.sh, and its bats test, and restoring the broken direct-on-discussion `if`. As a result, labelling a Discussion `idea:approved` (e.g. #650) again failed with "Unsupported event type: discussion" and never planned. Restore #618 verbatim, preserving the current claude-code-action v1.0.148 pin: - re-add the `redispatch` job; `plan` runs only on workflow_dispatch - restore scripts/initiative-planner/redispatch.sh - restore tests/test_initiative_planner_redispatch.bats - restore the README rows for redispatch.sh and its test https://claude.ai/code/session_01WRJisJyfNK2CuR4f1n9cao * chore: apply manual instructions [skip ci-relay] --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…ion rejects `discussion` events — the `idea:approved` auto-trigger never plans (#618) * feat: implement issue #591 — bug(initiative-planner): claude-code-action rejects `discussion` events — the `idea:approved` auto-trigger never plans * fix(reviews): address review comments [skip ci-relay] --------- Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…tch bridge (#654) * fix(initiative-planner): restore discussion→workflow_dispatch redispatch bridge PR #618 (issue #591) fixed the `idea:approved` auto-trigger: claude-code-action aborts with "Unsupported event type: discussion", so the planner re-invokes itself via workflow_dispatch through a `redispatch` bridge job. PR #606 (an unrelated pr-review change) was branched off main before #618 landed and, on merge, silently reverted the fix — deleting the redispatch job, redispatch.sh, and its bats test, and restoring the broken direct-on-discussion `if`. As a result, labelling a Discussion `idea:approved` (e.g. #650) again failed with "Unsupported event type: discussion" and never planned. Restore #618 verbatim, preserving the current claude-code-action v1.0.148 pin: - re-add the `redispatch` job; `plan` runs only on workflow_dispatch - restore scripts/initiative-planner/redispatch.sh - restore tests/test_initiative_planner_redispatch.bats - restore the README rows for redispatch.sh and its test https://claude.ai/code/session_01WRJisJyfNK2CuR4f1n9cao * chore: apply manual instructions [skip ci-relay] --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…tch bridge (#654) * fix(initiative-planner): restore discussion→workflow_dispatch redispatch bridge PR #618 (issue #591) fixed the `idea:approved` auto-trigger: claude-code-action aborts with "Unsupported event type: discussion", so the planner re-invokes itself via workflow_dispatch through a `redispatch` bridge job. PR #606 (an unrelated pr-review change) was branched off main before #618 landed and, on merge, silently reverted the fix — deleting the redispatch job, redispatch.sh, and its bats test, and restoring the broken direct-on-discussion `if`. As a result, labelling a Discussion `idea:approved` (e.g. #650) again failed with "Unsupported event type: discussion" and never planned. Restore #618 verbatim, preserving the current claude-code-action v1.0.148 pin: - re-add the `redispatch` job; `plan` runs only on workflow_dispatch - restore scripts/initiative-planner/redispatch.sh - restore tests/test_initiative_planner_redispatch.bats - restore the README rows for redispatch.sh and its test https://claude.ai/code/session_01WRJisJyfNK2CuR4f1n9cao * chore: apply manual instructions [skip ci-relay] --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…ion rejects `discussion` events — the `idea:approved` auto-trigger never plans (#618) * feat: implement issue #591 — bug(initiative-planner): claude-code-action rejects `discussion` events — the `idea:approved` auto-trigger never plans * fix(reviews): address review comments [skip ci-relay] --------- Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…tch bridge (#654) * fix(initiative-planner): restore discussion→workflow_dispatch redispatch bridge PR #618 (issue #591) fixed the `idea:approved` auto-trigger: claude-code-action aborts with "Unsupported event type: discussion", so the planner re-invokes itself via workflow_dispatch through a `redispatch` bridge job. PR #606 (an unrelated pr-review change) was branched off main before #618 landed and, on merge, silently reverted the fix — deleting the redispatch job, redispatch.sh, and its bats test, and restoring the broken direct-on-discussion `if`. As a result, labelling a Discussion `idea:approved` (e.g. #650) again failed with "Unsupported event type: discussion" and never planned. Restore #618 verbatim, preserving the current claude-code-action v1.0.148 pin: - re-add the `redispatch` job; `plan` runs only on workflow_dispatch - restore scripts/initiative-planner/redispatch.sh - restore tests/test_initiative_planner_redispatch.bats - restore the README rows for redispatch.sh and its test https://claude.ai/code/session_01WRJisJyfNK2CuR4f1n9cao * chore: apply manual instructions [skip ci-relay] --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…tch bridge (#654) * fix(initiative-planner): restore discussion→workflow_dispatch redispatch bridge PR #618 (issue #591) fixed the `idea:approved` auto-trigger: claude-code-action aborts with "Unsupported event type: discussion", so the planner re-invokes itself via workflow_dispatch through a `redispatch` bridge job. PR #606 (an unrelated pr-review change) was branched off main before #618 landed and, on merge, silently reverted the fix — deleting the redispatch job, redispatch.sh, and its bats test, and restoring the broken direct-on-discussion `if`. As a result, labelling a Discussion `idea:approved` (e.g. #650) again failed with "Unsupported event type: discussion" and never planned. Restore #618 verbatim, preserving the current claude-code-action v1.0.148 pin: - re-add the `redispatch` job; `plan` runs only on workflow_dispatch - restore scripts/initiative-planner/redispatch.sh - restore tests/test_initiative_planner_redispatch.bats - restore the README rows for redispatch.sh and its test https://claude.ai/code/session_01WRJisJyfNK2CuR4f1n9cao * chore: apply manual instructions [skip ci-relay] --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…tch bridge (#654) * fix(initiative-planner): restore discussion→workflow_dispatch redispatch bridge PR #618 (issue #591) fixed the `idea:approved` auto-trigger: claude-code-action aborts with "Unsupported event type: discussion", so the planner re-invokes itself via workflow_dispatch through a `redispatch` bridge job. PR #606 (an unrelated pr-review change) was branched off main before #618 landed and, on merge, silently reverted the fix — deleting the redispatch job, redispatch.sh, and its bats test, and restoring the broken direct-on-discussion `if`. As a result, labelling a Discussion `idea:approved` (e.g. #650) again failed with "Unsupported event type: discussion" and never planned. Restore #618 verbatim, preserving the current claude-code-action v1.0.148 pin: - re-add the `redispatch` job; `plan` runs only on workflow_dispatch - restore scripts/initiative-planner/redispatch.sh - restore tests/test_initiative_planner_redispatch.bats - restore the README rows for redispatch.sh and its test https://claude.ai/code/session_01WRJisJyfNK2CuR4f1n9cao * chore: apply manual instructions [skip ci-relay] --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…tch bridge (#654) * fix(initiative-planner): restore discussion→workflow_dispatch redispatch bridge PR #618 (issue #591) fixed the `idea:approved` auto-trigger: claude-code-action aborts with "Unsupported event type: discussion", so the planner re-invokes itself via workflow_dispatch through a `redispatch` bridge job. PR #606 (an unrelated pr-review change) was branched off main before #618 landed and, on merge, silently reverted the fix — deleting the redispatch job, redispatch.sh, and its bats test, and restoring the broken direct-on-discussion `if`. As a result, labelling a Discussion `idea:approved` (e.g. #650) again failed with "Unsupported event type: discussion" and never planned. Restore #618 verbatim, preserving the current claude-code-action v1.0.148 pin: - re-add the `redispatch` job; `plan` runs only on workflow_dispatch - restore scripts/initiative-planner/redispatch.sh - restore tests/test_initiative_planner_redispatch.bats - restore the README rows for redispatch.sh and its test https://claude.ai/code/session_01WRJisJyfNK2CuR4f1n9cao * chore: apply manual instructions [skip ci-relay] --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…tch bridge (#654) * fix(initiative-planner): restore discussion→workflow_dispatch redispatch bridge PR #618 (issue #591) fixed the `idea:approved` auto-trigger: claude-code-action aborts with "Unsupported event type: discussion", so the planner re-invokes itself via workflow_dispatch through a `redispatch` bridge job. PR #606 (an unrelated pr-review change) was branched off main before #618 landed and, on merge, silently reverted the fix — deleting the redispatch job, redispatch.sh, and its bats test, and restoring the broken direct-on-discussion `if`. As a result, labelling a Discussion `idea:approved` (e.g. #650) again failed with "Unsupported event type: discussion" and never planned. Restore #618 verbatim, preserving the current claude-code-action v1.0.148 pin: - re-add the `redispatch` job; `plan` runs only on workflow_dispatch - restore scripts/initiative-planner/redispatch.sh - restore tests/test_initiative_planner_redispatch.bats - restore the README rows for redispatch.sh and its test https://claude.ai/code/session_01WRJisJyfNK2CuR4f1n9cao * chore: apply manual instructions [skip ci-relay] --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…tch bridge (#654) * fix(initiative-planner): restore discussion→workflow_dispatch redispatch bridge PR #618 (issue #591) fixed the `idea:approved` auto-trigger: claude-code-action aborts with "Unsupported event type: discussion", so the planner re-invokes itself via workflow_dispatch through a `redispatch` bridge job. PR #606 (an unrelated pr-review change) was branched off main before #618 landed and, on merge, silently reverted the fix — deleting the redispatch job, redispatch.sh, and its bats test, and restoring the broken direct-on-discussion `if`. As a result, labelling a Discussion `idea:approved` (e.g. #650) again failed with "Unsupported event type: discussion" and never planned. Restore #618 verbatim, preserving the current claude-code-action v1.0.148 pin: - re-add the `redispatch` job; `plan` runs only on workflow_dispatch - restore scripts/initiative-planner/redispatch.sh - restore tests/test_initiative_planner_redispatch.bats - restore the README rows for redispatch.sh and its test https://claude.ai/code/session_01WRJisJyfNK2CuR4f1n9cao * chore: apply manual instructions [skip ci-relay] --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…tch bridge (#654) * fix(initiative-planner): restore discussion→workflow_dispatch redispatch bridge PR #618 (issue #591) fixed the `idea:approved` auto-trigger: claude-code-action aborts with "Unsupported event type: discussion", so the planner re-invokes itself via workflow_dispatch through a `redispatch` bridge job. PR #606 (an unrelated pr-review change) was branched off main before #618 landed and, on merge, silently reverted the fix — deleting the redispatch job, redispatch.sh, and its bats test, and restoring the broken direct-on-discussion `if`. As a result, labelling a Discussion `idea:approved` (e.g. #650) again failed with "Unsupported event type: discussion" and never planned. Restore #618 verbatim, preserving the current claude-code-action v1.0.148 pin: - re-add the `redispatch` job; `plan` runs only on workflow_dispatch - restore scripts/initiative-planner/redispatch.sh - restore tests/test_initiative_planner_redispatch.bats - restore the README rows for redispatch.sh and its test https://claude.ai/code/session_01WRJisJyfNK2CuR4f1n9cao * chore: apply manual instructions [skip ci-relay] --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…tch bridge (#654) * fix(initiative-planner): restore discussion→workflow_dispatch redispatch bridge PR #618 (issue #591) fixed the `idea:approved` auto-trigger: claude-code-action aborts with "Unsupported event type: discussion", so the planner re-invokes itself via workflow_dispatch through a `redispatch` bridge job. PR #606 (an unrelated pr-review change) was branched off main before #618 landed and, on merge, silently reverted the fix — deleting the redispatch job, redispatch.sh, and its bats test, and restoring the broken direct-on-discussion `if`. As a result, labelling a Discussion `idea:approved` (e.g. #650) again failed with "Unsupported event type: discussion" and never planned. Restore #618 verbatim, preserving the current claude-code-action v1.0.148 pin: - re-add the `redispatch` job; `plan` runs only on workflow_dispatch - restore scripts/initiative-planner/redispatch.sh - restore tests/test_initiative_planner_redispatch.bats - restore the README rows for redispatch.sh and its test https://claude.ai/code/session_01WRJisJyfNK2CuR4f1n9cao * chore: apply manual instructions [skip ci-relay] --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…tch bridge (#654) * fix(initiative-planner): restore discussion→workflow_dispatch redispatch bridge PR #618 (issue #591) fixed the `idea:approved` auto-trigger: claude-code-action aborts with "Unsupported event type: discussion", so the planner re-invokes itself via workflow_dispatch through a `redispatch` bridge job. PR #606 (an unrelated pr-review change) was branched off main before #618 landed and, on merge, silently reverted the fix — deleting the redispatch job, redispatch.sh, and its bats test, and restoring the broken direct-on-discussion `if`. As a result, labelling a Discussion `idea:approved` (e.g. #650) again failed with "Unsupported event type: discussion" and never planned. Restore #618 verbatim, preserving the current claude-code-action v1.0.148 pin: - re-add the `redispatch` job; `plan` runs only on workflow_dispatch - restore scripts/initiative-planner/redispatch.sh - restore tests/test_initiative_planner_redispatch.bats - restore the README rows for redispatch.sh and its test https://claude.ai/code/session_01WRJisJyfNK2CuR4f1n9cao * chore: apply manual instructions [skip ci-relay] --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…tch bridge (#654) * fix(initiative-planner): restore discussion→workflow_dispatch redispatch bridge PR #618 (issue #591) fixed the `idea:approved` auto-trigger: claude-code-action aborts with "Unsupported event type: discussion", so the planner re-invokes itself via workflow_dispatch through a `redispatch` bridge job. PR #606 (an unrelated pr-review change) was branched off main before #618 landed and, on merge, silently reverted the fix — deleting the redispatch job, redispatch.sh, and its bats test, and restoring the broken direct-on-discussion `if`. As a result, labelling a Discussion `idea:approved` (e.g. #650) again failed with "Unsupported event type: discussion" and never planned. Restore #618 verbatim, preserving the current claude-code-action v1.0.148 pin: - re-add the `redispatch` job; `plan` runs only on workflow_dispatch - restore scripts/initiative-planner/redispatch.sh - restore tests/test_initiative_planner_redispatch.bats - restore the README rows for redispatch.sh and its test https://claude.ai/code/session_01WRJisJyfNK2CuR4f1n9cao * chore: apply manual instructions [skip ci-relay] --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…tch bridge (#654) * fix(initiative-planner): restore discussion→workflow_dispatch redispatch bridge PR #618 (issue #591) fixed the `idea:approved` auto-trigger: claude-code-action aborts with "Unsupported event type: discussion", so the planner re-invokes itself via workflow_dispatch through a `redispatch` bridge job. PR #606 (an unrelated pr-review change) was branched off main before #618 landed and, on merge, silently reverted the fix — deleting the redispatch job, redispatch.sh, and its bats test, and restoring the broken direct-on-discussion `if`. As a result, labelling a Discussion `idea:approved` (e.g. #650) again failed with "Unsupported event type: discussion" and never planned. Restore #618 verbatim, preserving the current claude-code-action v1.0.148 pin: - re-add the `redispatch` job; `plan` runs only on workflow_dispatch - restore scripts/initiative-planner/redispatch.sh - restore tests/test_initiative_planner_redispatch.bats - restore the README rows for redispatch.sh and its test https://claude.ai/code/session_01WRJisJyfNK2CuR4f1n9cao * chore: apply manual instructions [skip ci-relay] --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…tch bridge (#654) * fix(initiative-planner): restore discussion→workflow_dispatch redispatch bridge PR #618 (issue #591) fixed the `idea:approved` auto-trigger: claude-code-action aborts with "Unsupported event type: discussion", so the planner re-invokes itself via workflow_dispatch through a `redispatch` bridge job. PR #606 (an unrelated pr-review change) was branched off main before #618 landed and, on merge, silently reverted the fix — deleting the redispatch job, redispatch.sh, and its bats test, and restoring the broken direct-on-discussion `if`. As a result, labelling a Discussion `idea:approved` (e.g. #650) again failed with "Unsupported event type: discussion" and never planned. Restore #618 verbatim, preserving the current claude-code-action v1.0.148 pin: - re-add the `redispatch` job; `plan` runs only on workflow_dispatch - restore scripts/initiative-planner/redispatch.sh - restore tests/test_initiative_planner_redispatch.bats - restore the README rows for redispatch.sh and its test https://claude.ai/code/session_01WRJisJyfNK2CuR4f1n9cao * chore: apply manual instructions [skip ci-relay] --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…tch bridge (#654) * fix(initiative-planner): restore discussion→workflow_dispatch redispatch bridge PR #618 (issue #591) fixed the `idea:approved` auto-trigger: claude-code-action aborts with "Unsupported event type: discussion", so the planner re-invokes itself via workflow_dispatch through a `redispatch` bridge job. PR #606 (an unrelated pr-review change) was branched off main before #618 landed and, on merge, silently reverted the fix — deleting the redispatch job, redispatch.sh, and its bats test, and restoring the broken direct-on-discussion `if`. As a result, labelling a Discussion `idea:approved` (e.g. #650) again failed with "Unsupported event type: discussion" and never planned. Restore #618 verbatim, preserving the current claude-code-action v1.0.148 pin: - re-add the `redispatch` job; `plan` runs only on workflow_dispatch - restore scripts/initiative-planner/redispatch.sh - restore tests/test_initiative_planner_redispatch.bats - restore the README rows for redispatch.sh and its test https://claude.ai/code/session_01WRJisJyfNK2CuR4f1n9cao * chore: apply manual instructions [skip ci-relay] --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…tch bridge (#654) * fix(initiative-planner): restore discussion→workflow_dispatch redispatch bridge PR #618 (issue #591) fixed the `idea:approved` auto-trigger: claude-code-action aborts with "Unsupported event type: discussion", so the planner re-invokes itself via workflow_dispatch through a `redispatch` bridge job. PR #606 (an unrelated pr-review change) was branched off main before #618 landed and, on merge, silently reverted the fix — deleting the redispatch job, redispatch.sh, and its bats test, and restoring the broken direct-on-discussion `if`. As a result, labelling a Discussion `idea:approved` (e.g. #650) again failed with "Unsupported event type: discussion" and never planned. Restore #618 verbatim, preserving the current claude-code-action v1.0.148 pin: - re-add the `redispatch` job; `plan` runs only on workflow_dispatch - restore scripts/initiative-planner/redispatch.sh - restore tests/test_initiative_planner_redispatch.bats - restore the README rows for redispatch.sh and its test https://claude.ai/code/session_01WRJisJyfNK2CuR4f1n9cao * chore: apply manual instructions [skip ci-relay] --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…tch bridge (#654) * fix(initiative-planner): restore discussion→workflow_dispatch redispatch bridge PR #618 (issue #591) fixed the `idea:approved` auto-trigger: claude-code-action aborts with "Unsupported event type: discussion", so the planner re-invokes itself via workflow_dispatch through a `redispatch` bridge job. PR #606 (an unrelated pr-review change) was branched off main before #618 landed and, on merge, silently reverted the fix — deleting the redispatch job, redispatch.sh, and its bats test, and restoring the broken direct-on-discussion `if`. As a result, labelling a Discussion `idea:approved` (e.g. #650) again failed with "Unsupported event type: discussion" and never planned. Restore #618 verbatim, preserving the current claude-code-action v1.0.148 pin: - re-add the `redispatch` job; `plan` runs only on workflow_dispatch - restore scripts/initiative-planner/redispatch.sh - restore tests/test_initiative_planner_redispatch.bats - restore the README rows for redispatch.sh and its test https://claude.ai/code/session_01WRJisJyfNK2CuR4f1n9cao * chore: apply manual instructions [skip ci-relay] --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>



Closes #591
Implemented by dev-lead agent. Please review.