diff --git a/action.yml b/action.yml index fc7a47b..4f134d0 100644 --- a/action.yml +++ b/action.yml @@ -1,4 +1,4 @@ -name: ChatGPT CodeReviewer +name: GPTCodeReviewer description: 'A Code Review Action Powered By ChatGPT' branding: icon: 'gift' diff --git a/src/bot.ts b/src/bot.ts index 2856aaa..f7c3fed 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -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;