Skip to content

Commit 52298c6

Browse files
committed
chore: Change label field to be required for temp envs
1 parent b3ab63a commit 52298c6

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

dist/index.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ try {
3131
// Temp environments enabled
3232
if (github.context.eventName === "pull_request") {
3333
const prEvent = github.context.payload;
34-
const targetLabel = value.label || prEvent.label?.name;
34+
const targetLabel = value.label;
35+
if (!targetLabel) continue;
3536
const hasLabel =
3637
(prEvent.action === "labeled" &&
3738
prEvent.label.name === targetLabel) ||

0 commit comments

Comments
 (0)