Skip to content

Commit 11f7f22

Browse files
authored
Merge pull request #6434 from NomicFoundation/changeset-check
ci: run the changeset check in the merge queue
2 parents 25067ca + 06dc267 commit 11f7f22

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/check-changeset-added.yml

+10
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
name: Check that the PR has a changeset
55

66
on:
7+
merge_group:
78
pull_request:
89
branches:
910
- main
@@ -25,6 +26,15 @@ jobs:
2526
- uses: actions/github-script@v7
2627
with:
2728
script: |
29+
const isMergeGroup = context.eventName === "merge_group";
30+
31+
// Merge group context
32+
if (isMergeGroup) {
33+
console.log("Ignore changeset check for merge group.");
34+
return;
35+
}
36+
37+
// Single PR context
2838
const pullNumber = context.issue.number;
2939
3040
const { data: files } = await github.rest.pulls.listFiles({

0 commit comments

Comments
 (0)