Skip to content

Commit

Permalink
fix: draft PR (#134)
Browse files Browse the repository at this point in the history
* fix: draft PR

Signed-off-by: 0kenx <km@nxfi.app>

* rename

Signed-off-by: 0kenx <km@nxfi.app>

---------

Signed-off-by: 0kenx <km@nxfi.app>
  • Loading branch information
0kenx authored Nov 14, 2023
1 parent f908e4b commit d2fc217
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ChatGPT CodeReviewer
name: GPTCodeReviewer
description: 'A Code Review Action Powered By ChatGPT'
branding:
icon: 'gift'
Expand Down
7 changes: 3 additions & 4 deletions src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,10 @@ export const robot = (app: Probot) => {

if (
pull_request.state === 'closed' ||
pull_request.locked ||
pull_request.draft
pull_request.locked
) {
console.log('invalid event paylod');
return 'invalid event paylod';
console.log('invalid event payload');
return 'invalid event payload';
}

const target_label = process.env.TARGET_LABEL;
Expand Down

0 comments on commit d2fc217

Please sign in to comment.