Skip to content

Commit 3e8e424

Browse files
authored
Merge branch 'main' into psharpe/GLOBE-perf-to-merge
2 parents f5de94e + f9c4513 commit 3e8e424

1 file changed

Lines changed: 24 additions & 16 deletions

File tree

.github/workflows/merge-queue-blossom-passthrough.yml

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,19 @@
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

2732
on:
2833
merge_group:
@@ -32,19 +37,22 @@ permissions:
3237
contents: read
3338

3439
jobs:
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

Comments
 (0)