Skip to content

Commit

Permalink
update action code
Browse files Browse the repository at this point in the history
  • Loading branch information
anc95 committed Mar 1, 2024
1 parent 5dbc6f6 commit 8c74515
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions action/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -148172,10 +148172,9 @@ const robot = (app) => {
}
const pull_request = context.payload.pull_request;
if (pull_request.state === 'closed' ||
pull_request.locked ||
pull_request.draft) {
console.log('invalid event paylod');
return 'invalid event paylod';
pull_request.locked) {
console.log('invalid event payload');
return 'invalid event payload';
}
const target_label = process.env.TARGET_LABEL;
if (target_label &&
Expand Down

1 comment on commit 8c74515

@Damilola70
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

KB2999226

Please sign in to comment.