Skip to content

Commit 12d31ce

Browse files
t3dotggclaude
andcommitted
skip the download comment when the PR is closed or unlabeled
Co-Authored-By: Claude Fable 5 <[email protected]>
1 parent d97020e commit 12d31ce

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎.github/workflows/desktop-macos-preview.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,11 @@ jobs:
230230
repo: context.repo.repo,
231231
pull_number: context.payload.pull_request.number,
232232
});
233-
if (pullRequest.head.sha !== process.env.HEAD_SHA) {
233+
if (
234+
pullRequest.head.sha !== process.env.HEAD_SHA ||
235+
pullRequest.state !== "open" ||
236+
!pullRequest.labels.some((label) => label.name === "preview:mac")
237+
) {
234238
core.info("Skipping the outdated macOS preview comment.");
235239
return;
236240
}

0 commit comments

Comments
 (0)