Skip to content

Commit d2fc217

Browse files
authored
fix: draft PR (#134)
* fix: draft PR Signed-off-by: 0kenx <[email protected]> * rename Signed-off-by: 0kenx <[email protected]> --------- Signed-off-by: 0kenx <[email protected]>
1 parent f908e4b commit d2fc217

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ChatGPT CodeReviewer
1+
name: GPTCodeReviewer
22
description: 'A Code Review Action Powered By ChatGPT'
33
branding:
44
icon: 'gift'

src/bot.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,10 @@ export const robot = (app: Probot) => {
5656

5757
if (
5858
pull_request.state === 'closed' ||
59-
pull_request.locked ||
60-
pull_request.draft
59+
pull_request.locked
6160
) {
62-
console.log('invalid event paylod');
63-
return 'invalid event paylod';
61+
console.log('invalid event payload');
62+
return 'invalid event payload';
6463
}
6564

6665
const target_label = process.env.TARGET_LABEL;

0 commit comments

Comments
 (0)