Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kxxt/chatgpt-action
Let ChatGPT review PRs for you
https://github.com/kxxt/chatgpt-action
automation chat-gpt chatgpt ci code-review github-actions
Last synced: about 2 months ago
JSON representation
Let ChatGPT review PRs for you
- Host: GitHub
- URL: https://github.com/kxxt/chatgpt-action
- Owner: kxxt
- License: mit
- Archived: true
- Created: 2022-12-07T09:58:08.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-09T18:16:11.000Z (over 1 year ago)
- Last Synced: 2024-10-15T13:31:45.456Z (about 2 months ago)
- Topics: automation, chat-gpt, chatgpt, ci, code-review, github-actions
- Language: JavaScript
- Homepage:
- Size: 1.35 MB
- Stars: 554
- Watchers: 9
- Forks: 58
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
- Awesome-ChatGPT - ChatGPT Code Review
- awesome-chatgpt-tools - ChatGPT Code Review
- awesome-ChatGPT-resource-zh - ChatGPT Code Review
- awesome-open-gpt - chatgpt-action
- awesome-chatgpt - chatgpt-action
- awesome-chatgpt - PR code review using ChatGPT
- fucking-awesome-chatgpt - ChatGPT Code Review
- awesome-chatgpt - ChatGPT Code Review
- awesome-ChatGPT-repositories - chatgpt-action - Let ChatGPT review PRs for you (Others)
- chatgpt-awesome - chatgpt-action
- awesome-chatgpt - ChatGPT Code Review
- awesome-chatgpt - Github action PR review helper
- StarryDivineSky - kxxt/chatgpt-action
- awesome-chatgpt-zh - ChatGPT 代码审查
- awesome-chatgpt - kxxt/chatgpt-action - Let ChatGPT review PRs for you (ChatGPT-based applications / Other sdk/libraries)
- awesome-gpt - chatgpt-action
- awesome-technostructure - kxxt/chatgpt-action - action: Let ChatGPT review PRs for you ([:robot: machine-learning]([robot-machine-learning)](<https://github.com/stars/ketsapiwiq/lists/robot-machine-learning>)))
- awesome-technostructure - kxxt/chatgpt-action - action: Let ChatGPT review PRs for you ([:robot: machine-learning]([robot-machine-learning)](<https://github.com/stars/ketsapiwiq/lists/robot-machine-learning>)))
README
# chatgpt-action
Let chatgpt review your PR.
Please note: this repo is a WIP and I do not recommend you to use it in production!
## Ideas
- Create a vscode extension that asks ChatGPT to refactor or point out the bugs of a selected range of code. I don't have time to learn vscode extension and implement it.
- Implement ChatGPT's review feedback as a commit or suggested change ([#27](https://github.com/kxxt/chatgpt-action/issues/27))## Warning
- code of experimental quality!
- ChatGPT often generates misleading comments which could confuse your contributors and that's
one reason against using this action in production.
- Sometimes you will get 403 errors when the generated prompt is too long or considered an attack(perhaps?).
- ~~Split the prompt and let ChatGPT comment on every single file should resolve this issue most of the time.~~
- This feature has been implemented but it is unstable. Add `split: true` to `with` node in your config to enable this feature.
- When you have too many changed files, ChatGPT will produce very bad results. Here is an example: https://github.com/LearningOS/lab5-os8-kxxt/pull/1
## Showcase### YOLO Mode: Give all the info to ChatGPT in one go
- https://github.com/kxxt/chatgpt-action/pull/12
- https://github.com/kxxt/chatgpt-action/pull/10
- https://github.com/kxxt/chatgpt-action/pull/9### Using Unstable Split Feature
- https://github.com/kxxt/chatgpt-action/pull/20
- https://github.com/kxxt/chatgpt-action/pull/22## Usage
```yaml
on: [pull_request]name: ChatGPT CodeReview
jobs:
chatgpt_comment:
runs-on: ubuntu-latest
name: Let chatgpt comment on your PR.
steps:
- name: ChatGPT comment
uses: kxxt/[email protected]
id: chatgpt
with:
number: ${{ github.event.pull_request.number }}
sessionToken: ${{ secrets.CHATGPT_SESSION_TOKEN }}
split: 'yolo' # Use true to enable the unstable split feature.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```