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

Enable to make GPT review in draft #102

Open yu-iskw opened 1 year ago

yu-iskw commented 1 year ago

Motivation

I would like to make the Action to review even in draft. If a pull request gets ready to review, humans get in the loop of the review. Developers have to pass code refined with GPT to humans beforehand.

https://github.com/anc95/ChatGPT-CodeReview/blob/main/src/bot.ts#L58

Possible Solution

We may pass an input or an environment variable to the Action whether or not we run the Action in draft.

Aside from that, it would be good to clearly define inputs and outputs of the Action in action.yml so that users of the Action can easily understand them.

anc95 commented 1 year ago

@yu-iskw Yes. agreed, we can add a env variable to control whether review the draft pr