ci(pr-checks): add workflow_dispatch trigger for manual PR re-runs#1415
Merged
ci(pr-checks): add workflow_dispatch trigger for manual PR re-runs#1415
Conversation
added 2 commits
March 18, 2026 20:28
- Add workflow_dispatch input `pr_number` to trigger checks on a specific PR without pushing a new commit - Add composite action `.github/actions/checkout-pr` that resolves the correct ref for both pull_request and workflow_dispatch events - Update code-quality, unit-tests, coverage-tests to use the new composite action; prek now reads PR_BASE_REF from env - Update if conditions on all jobs to allow workflow_dispatch through; build-test and release-script-test remain pull_request-only
Local actions require the repo to be checked out first. Split the composite action into two steps per job: a bare actions/checkout@v4 to make the local action available, followed by the Resolve PR Context action which handles workflow_dispatch ref switching.
IceyLiu
approved these changes
Mar 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
workflow_dispatchtrigger to✅ PR Checksworkflow, accepting apr_numberinput so any PR can be re-checked without pushing a new commit.github/actions/checkout-prthat resolves the correct ref and base branch for bothpull_requestandworkflow_dispatcheventsbuild-testandrelease-script-testremainpull_request-only; onlycode-quality,unit-tests,coverage-tests, andi18n-checkrun on manual dispatchTest plan
1404) and confirm the 4 jobs run against that PR's head SHAHEAD_SHAandPR_BASE_REFPR_BASE_REF(notgithub.base_ref) and produces the expected diff rangepull_requestevents (opened / synchronize) still work as beforeeditedevents are still skipped for all jobs