anc95 / ChatGPT-CodeReview

🐥 A code review bot powered by ChatGPT
https://github.com/apps/cr-gpt
ISC License
3.77k stars 360 forks source link

Invalid event payload in draft PR #133

Closed 0kenx closed 7 months ago

0kenx commented 9 months ago

When this action is used in a draft PR, it results in error:

Run anc95/ChatGPT-CodeReview@main
invalid event paylod
0kenx commented 9 months ago

I see that this is intentional https://github.com/anc95/ChatGPT-CodeReview/blob/f908e4ba50b12b43efb9051f40df0d9db64c088c/src/bot.ts#L62, but it shouldn't be.

For my use case, if I use the review bot only when the PR is complete, then it would always exceed the OpenAI token limit. So I want to use the bot for every commit in a draft PR instead.