Skip to content

ci: dispatch required checks automatically on the release PR - #61

Merged
jbdevprimary merged 1 commit into
mainfrom
ci/auto-dispatch-release-checks
Jul 27, 2026
Merged

ci: dispatch required checks automatically on the release PR#61
jbdevprimary merged 1 commit into
mainfrom
ci/auto-dispatch-release-checks

Conversation

@jbdevprimary

Copy link
Copy Markdown
Contributor

Follow-up to #56 — closing a gap a review pass caught in my own work.

#56 added workflow_dispatch to 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:

PR #59 head=b20f6a7  check-runs total: 0  state: blocked

Exactly the original deadlock. A manual escape hatch is not a fix.

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 with no human involved.

  • Gated on steps.release.outputs.prs_created == 'true' — skipped entirely on release-only runs
  • Branch parsed from the action's pr output with jq at runtime, not via fromJSON in an env: template, which would fail expansion when the output is empty
  • Fails loudly if the branch cannot be read, rather than silently dispatching a wrong ref
  • Adds actions: write, scoped to this workflow only

Verification

headBranchName confirmed against the real release-please type definitions (build/src/pull-request.d.ts:2), and core.setOutput('pr', prs[0]) confirmed in the v5.0.0 action source — not assumed.

Parsing tested both ways:

realistic output -> release-please--branches--main--components--pkgs-site  ✓
empty string   -> correctly rejected  ✓
empty object {}  -> correctly rejected  ✓

YAML parses; if/env verified structurally.

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.
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@coderabbitai

coderabbitai Bot commented Jul 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@jbdevprimary, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 10 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 7551c652-ab81-46a3-8ddc-f5e9cbb0142c

📥 Commits

Reviewing files that changed from the base of the PR and between 01e73fc and c52c325.

📒 Files selected for processing (1)
  • .github/workflows/release.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/auto-dispatch-release-checks

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.

@amazon-q-developer amazon-q-developer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@jbdevprimary
jbdevprimary merged commit 045194f into main Jul 27, 2026
10 checks passed
@jbdevprimary
jbdevprimary deleted the ci/auto-dispatch-release-checks branch July 27, 2026 06:09
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