Skip to content

feat(pm-dispatch): pm-dispatch-task action + prompt library, supersedes pm-dispatch-ci-fix (#2672) - #2692

Merged
dezren39 merged 1 commit into
mainfrom
feat/2672-pm-dispatch-task
Oct 30, 2026
Merged

dezren39 merged 1 commit into
mainfrom
feat/2672-pm-dispatch-task

Conversation

@dezren39

@dezren39 dezren39 commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Part of #2672

Summary

Adds .github/actions/pm-dispatch-task/ — the task-level composite action (Drew's architecture update, 2026-10-30) with a bundled prompt library — and rewrites the dispatch README's "GitHub Actions (reusable)" section to describe all three actions.

  • Action (action.yml): inputs task (required, any string), repo, title, model, priority, overrides prompt/prompt-file/prompt-url, ci-fix context (workflow, run-id, run-url, branch, sha, pr), default-branch. Outputs task_id/session_id/issue_number/issue_url via a finalize step that also writes the step summary. Prompt resolution: prompt-file > prompt-url > prompt > library prompts/<task>.md; first non-empty wins, unknown task + no override fails with no library prompt for task '<task>'. No new HTTP/OIDC code — dispatch is conditional uses: steps calling pm-dispatch-start@main / pm-dispatch-queue@main. No continue-on-error on dispatch steps.
  • Non-ci-fix routing: starter with wait=true; default title Scheduled <Task> — <repo> when no title given.
  • ci-fix mode: python3 placeholder substitution ({{workflow}}/{{run_id}}/{{run_url}}/{{branch}}/{{sha}}/{{pr}}, safe for slashes/colons/ampersands), exact-title dedupe over open issues (ci-fix: <workflow> failing on <branch>, client-side exact filter), then attach via queuer (issue_number, kind ci_investigation) / starter on the default branch / queuer with issue=true elsewhere. Priority defaults high on the default branch, normal otherwise, when not given. Caller must provide GH_TOKEN with issues read (documented).
  • Prompt library: bolt.md and palette.md are the canonical Jules prompts with their HOUSE RULES block reworded for dispatched OpenCode sessions (laptop checkout, tracking issue + queue task already created — do not create another, no plan-approval step, PR per the target repo's conventions, merge only per house rules). suggestions.md is new (verified findings only, one issue per finding, cap 5, filed/rejected/needs-a-human summary). ci-fix.md is the placeholder template (root-cause fix, environmental/flake reporting instead of a forced change).

Supersession

This PR deletes .github/actions/pm-dispatch-ci-fix/ and its README subsection (added in #2689). Drew's task-level architecture supersedes that standalone action before any caller existed; its dedupe/branch routing logic is carried over into ci-fix mode here (prompt now comes from the library template instead of being composed inline, and the failed PR input is named pr).

Validation

  • YAML parsed cleanly (all inputs/outputs/steps present).
  • Bash logic functionally tested locally with stubbed gh/curl (38 checks, all passing): library hit for bolt, prompt-file/prompt-url/inline overrides winning in order, unknown task failing with the exact error, ci-fix placeholder substitution with slash/colon/ampersand values, ci-fix three-way mode decision (attach / start / queue) driven by real resolve+dedupe outputs, dedupe exact-title filtering and GH_TOKEN guard, finalize output coalescing + summary. The uses: steps cannot run locally and were inspected for wiring only.

@dezren39
dezren39 requested a review from a team as a code owner October 30, 2026 10:54
@coderabbitai

coderabbitai Bot commented Oct 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 15 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b467c211-858d-4a7c-b20a-63c4ad316ac4
Commits

Reviewing files that changed from the base of the PR and between e616aef and fe1abbf.

Files selected for processing: 7
  • .github/actions/pm-dispatch-ci-fix/action.yml
  • .github/actions/pm-dispatch-task/action.yml
  • .github/actions/pm-dispatch-task/prompts/bolt.md
  • .github/actions/pm-dispatch-task/prompts/ci-fix.md
  • .github/actions/pm-dispatch-task/prompts/palette.md
  • .github/actions/pm-dispatch-task/prompts/suggestions.md
  • pm-stack/dispatch/README.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T10:55:39.323217Z fe1abbf PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant