Skip to content

Commit 06dc267

Browse files
committed
chore: short-circuit changeset check in merge group context
When running in a merge queue we don't have a single PR, but a group. I was unable to figure out how to check for changesets on the merge group. Instead we short-circuit in the merge group context, and rely on the individual PR check for changesets.
1 parent 1ce47e7 commit 06dc267

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

+9
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ jobs:
2626
- uses: actions/github-script@v7
2727
with:
2828
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
2938
const pullNumber = context.issue.number;
3039
3140
const { data: files } = await github.rest.pulls.listFiles({

0 commit comments

Comments
 (0)