anc95 / anc95/ChatGPT-CodeReview
Enable to make GPT review in draft
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 4.5k
- Forks
- 461
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at src/bot.ts around line 58 to understand how draft pull requests are currently handled, then inspect action.yml for the Action's existing inputs and outputs. Done means draft reviews can be controlled by an input or environment variable and the Action's inputs and outputs are clearly defined in action.yml.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, typescript
- Domain
- ci-cd
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100