actions-marketplace-validations/chatgpt-action
A collection of ChatGPT assistants, e.g., code viewer, labeler, assigner, etc.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| action | The action to run, currently can be "review", "score" | no | review |
| debug | Enable debug mode | no | false |
| path_filters | The path filters, e.g., "src/**.py", "!dist/**", each line will be considered as one pattern. See also - https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpushpull_requestpull_request_targetpathspaths-ignore - https://github.com/isaacs/minimatch | no | !dist/** **/package-lock.json |
| chatgpt_reverse_proxy | The URL of the chatgpt reverse proxy, see also https://github.com/transitive-bullshit/chatgpt-api#reverse-proxy | no | https://chat.duti.tech/api/conversation |
| review_comment_lgtm | Leave comments even the patch is LGTM | no | false |
| review_beginning | The beginning prompt of a code review dialog | no | Hi ChatGPT, I have a pull request with title "$title" and the description is as follows, > $description. Next, I will given you a series of patches, each of them consists of a filename and a diff snippet, and you need to do a brief code review for every message, and tell me any bug risk and improvement suggestion. If the patch is looks good and acceptable, please reply "LGTM!" with a short comment with 30 words. You answer should be concise. Don't include the diff in your comment, and markdown format is preferred. Reply "OK" to confirm. |
| review_patch | The prompt for each chunks/patches | no | $filename ```diff $patch ``` |
| scoring_beginning | The prompt for the whole pull request | no | Hi ChatGPT, I have a pull request with title "$title" and the description is as follows, > $description I would like score the pull request, the score should be a number between 0 and 100 and 85 means the the pull request is basically acceptable. You just need to reply a number between 0 and 100, e.g., "85", and a comment within 30 words. Next, I would give you the whole diff of the pull request. Reply "OK" to confirm. |
| scoring | The prompt for the whole diff for scoring | no | The diff is as follows: ```diff $diff ``` |
Outputs
no outputs