ci: dispatch required checks automatically on the release PR - #61
Conversation
Follow-up to #56, which added workflow_dispatch to the required workflows so a release-please PR could be unblocked. That made the checks *runnable* but not automatic — someone still had to trigger them by hand, so a fresh release PR (#59) came back with zero check runs and sat BLOCKED exactly as before. A manual escape hatch is not a fix. The Release job now dispatches `ci.yml` and `validate-packages.yml` against the release branch immediately after release-please creates or updates its PR, so the required contexts report without human intervention. Gated on `prs_created` and parsing the branch from the action's `pr` output with jq at runtime, so the step is skipped entirely on release-only runs and fails loudly rather than silently dispatching a wrong ref. Needs `actions: write` to dispatch, which is added narrowly to this workflow.
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
|
Warning Review limit reached
Next review available in: 10 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
✨ 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.
The changes correctly implement automatic workflow dispatch for release PRs. The implementation includes proper error handling, input validation, and follows GitHub Actions security best practices. The bash script safely parses the release-please output with appropriate null checks and uses proper quoting to prevent injection issues. No blocking issues found.
You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.
Follow-up to #56 — closing a gap a review pass caught in my own work.
#56 added
workflow_dispatchto the required workflows so a release-please PR could be unblocked. That made the checks runnable but not automatic: something still had to trigger them by hand. Proof it was insufficient — release-please opened a fresh PR (#59) after those merges, and it came back with:Exactly the original deadlock. A manual escape hatch is not a fix.
Fix
The
Releasejob now dispatchesci.ymlandvalidate-packages.ymlagainst the release branch immediately after release-please creates or updates its PR, so the required contexts report with no human involved.steps.release.outputs.prs_created == 'true'— skipped entirely on release-only runsproutput withjqat runtime, not viafromJSONin anenv:template, which would fail expansion when the output is emptyactions: write, scoped to this workflow onlyVerification
headBranchNameconfirmed against the realrelease-pleasetype definitions (build/src/pull-request.d.ts:2), andcore.setOutput('pr', prs[0])confirmed in the v5.0.0 action source — not assumed.Parsing tested both ways:
YAML parses;
if/envverified structurally.