Repository navigation
feat(pm-dispatch): pm-dispatch-ci-fix composite action (part 7 of #2672) - #2689
Conversation
|
Warning Review limit reachedYou'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 28 minutes. View limit details
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 |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Part of #2672
Adds the dispatch-native CI fixer as a composite action, plus a README subsection.
What
.github/actions/pm-dispatch-ci-fix/action.yml(composite). It contains no OIDC/HTTP plumbing of its own: a bashcomposestep builds the fixer prompt, a bashdedupestep searches for an existing open tracking issue, and dispatch happens through pm-dispatch-start / pm-dispatch-queue asuses:steps.gh run view <run-id> --log-failed), fix the ROOT CAUSE on the run's branch, open/update a PR per repo conventions referencing the run and the tracking issue. Conventional tracking-issue title:ci-fix: <workflow> failing on <branch>. Priority is high on the default branch, normal otherwise.gh issue list --state open --search "\"<title>\" in:title" --json number,title, then client-side exact-title filtering (search is fuzzy). Found -> queuer attaches (issue_number, kind ci_investigation). Not found + default branch -> starter (wait "true", creates the issue with the conventional title). Not found + other branch -> queuer with issue "true" (kind ci_investigation). A final step writes the job summary (mode, issue, task id, session id when the starter ran).permissions: id-token: write, and a job-env GH_TOKEN with issues read for the dedupe search.### pm-dispatch-ci-fixsubsection in the dispatch README under## GitHub Actions (reusable).Per-repo ci-fixer.yml workflows are deliberately NOT in this PR; they are coordinated separately after this lands.
Validation
ghon PATH: exact-title issue (with a fuzzy near-miss also returned) -> attach to the exact issue; no match + default branch -> fresh/high/start decision; no exact match + feature branch -> fresh/normal/queue decision. Prompt contents, the exact gh search invocation, the summary step output, and the loud failure when GH_TOKEN is unset were all asserted. Theuses:dispatch steps cannot run locally, so their wiring (targets +if:conditions) was asserted by reading them back from the parsed YAML.Need help on this PR? Tag
@codesmith-botwith what you need.