ChatGPT-CodeReview icon indicating copy to clipboard operation
ChatGPT-CodeReview copied to clipboard

Enable to make GPT review in draft

Open yu-iskw opened this issue 2 years ago • 1 comments

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.

yu-iskw avatar Jun 05 '23 04:06 yu-iskw

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

anc95 avatar Jun 06 '23 12:06 anc95