1515# limitations under the License.
1616
1717# This script is for merge queue purposes only.
18- # It's role is to post the blossom-ci status to a commit on a temp branch
19- # in order to clear the branch protection rule.
18+ # Its role is to post auto-pass commit statuses (blossom-ci, Coverage,
19+ # Testmon) on the temp merge-queue branch in order to clear the branch
20+ # protection rule. The real checks have already run on the PR before
21+ # it can enter the merge queue:
22+ # - blossom-ci runs on the PR via the Blossom-CI workflow.
23+ # - Coverage and Testmon run on the PR via the Pull Request Github CI
24+ # workflow (github-pr.yml), which only triggers on push to
25+ # `pull-request/[0-9]+` branches and therefore never fires on
26+ # `merge_group`.
2027
2128# It must only ever be run on the `merge_group`.
22- # Blossom-ci must be run as normal on the PR before a
23- # merge can even get to the merge queue.
2429
25- name : blossom-ci- merge-queue-shim
30+ name : merge-queue-status-passthrough
2631
2732on :
2833 merge_group :
@@ -32,19 +37,22 @@ permissions:
3237 contents : read
3338
3439jobs :
35- post-blossom-ci-status :
36- name : Post blossom-ci status
40+ post-merge-queue-statuses :
41+ name : Post merge-queue passthrough statuses
3742 runs-on : ubuntu-latest
3843 steps :
39- - name : Post blossom-ci status
44+ - name : Post merge-queue passthrough statuses
4045 uses : actions/github-script@v7
4146 with :
4247 script : |
43- await github.rest.repos.createCommitStatus({
44- owner: context.repo.owner,
45- repo: context.repo.repo,
46- sha: context.sha,
47- state: "success",
48- context: "blossom-ci",
49- description: "Auto-pass for merge queue"
50- })
48+ const contexts = ["blossom-ci", "Coverage", "Testmon"];
49+ for (const ctx of contexts) {
50+ await github.rest.repos.createCommitStatus({
51+ owner: context.repo.owner,
52+ repo: context.repo.repo,
53+ sha: context.sha,
54+ state: "success",
55+ context: ctx,
56+ description: "Auto-pass for merge queue"
57+ });
58+ }
0 commit comments