Skip to content

Commit 8ff58ca

Browse files
committed
chore: try and log the merge group context
1 parent 9f09fb9 commit 8ff58ca

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

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

+4-6
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,16 @@ jobs:
3030
3131
// Merge group context
3232
if (isMergeGroup) {
33+
console.log("Merge group context");
34+
console.log(context)
35+
3336
console.log("Running in merge_group context...");
34-
const listPrResult = await github.rest.repos.listPullRequestsAssociatedWithCommit({
37+
const { data: mergeQueue } = await github.rest.repos.listPullRequestsAssociatedWithCommit({
3538
owner: context.repo.owner,
3639
repo: context.repo.repo,
3740
commit_sha: context.sha
3841
});
3942
40-
console.log("list pr result");
41-
console.log(listPrResult);
42-
43-
const { data: mergeQueue } = listPrResult;
44-
4543
if (mergeQueue.length === 0) {
4644
console.log("No associated PRs found for this merge_group commit.");
4745
process.exit(1);

0 commit comments

Comments
 (0)