Skip to content

Commit

Permalink
chore: Change label field to be required for temp envs
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Jun 27, 2024
1 parent b3ab63a commit 52298c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ try {
// Temp environments enabled
if (github.context.eventName === "pull_request") {
const prEvent = github.context.payload;
const targetLabel = value.label || prEvent.label?.name;
const targetLabel = value.label;
if (!targetLabel) continue;
const hasLabel =
(prEvent.action === "labeled" &&
prEvent.label.name === targetLabel) ||
Expand Down

0 comments on commit 52298c6

Please sign in to comment.