{"id":13423987,"url":"https://github.com/kxxt/chatgpt-action","last_synced_at":"2025-03-15T17:32:49.165Z","repository":{"id":64383529,"uuid":"575345949","full_name":"kxxt/chatgpt-action","owner":"kxxt","description":"Let ChatGPT review PRs for you ","archived":true,"fork":false,"pushed_at":"2023-09-09T18:16:11.000Z","size":1420,"stargazers_count":554,"open_issues_count":14,"forks_count":58,"subscribers_count":9,"default_branch":"main","last_synced_at":"2024-10-15T13:31:45.456Z","etag":null,"topics":["automation","chat-gpt","chatgpt","ci","code-review","github-actions"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kxxt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-07T09:58:08.000Z","updated_at":"2024-09-14T18:24:20.000Z","dependencies_parsed_at":"2024-06-18T20:01:24.545Z","dependency_job_id":"c61f1630-e97a-4347-9a81-2cce9d54da83","html_url":"https://github.com/kxxt/chatgpt-action","commit_stats":{"total_commits":91,"total_committers":3,"mean_commits":"30.333333333333332","dds":0.03296703296703296,"last_synced_commit":"1391cb71baf602c663ad7ed967eb42feb460f258"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":"actions/javascript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kxxt%2Fchatgpt-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kxxt%2Fchatgpt-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kxxt%2Fchatgpt-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kxxt%2Fchatgpt-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kxxt","download_url":"https://codeload.github.com/kxxt/chatgpt-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221375043,"owners_count":16807954,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","chat-gpt","chatgpt","ci","code-review","github-actions"],"created_at":"2024-07-31T00:00:46.234Z","updated_at":"2024-10-26T22:32:25.999Z","avatar_url":"https://github.com/kxxt.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized","JavaScript","Addons, extensions, plug-ins for integrating LLM into third-party applications","Others","Official Resources","A01_文本生成_文本对话","Github Actions","[:robot: machine-learning]([robot-machine-learning)](\u003chttps://github.com/stars/ketsapiwiq/lists/robot-machine-learning\u003e))","精选开源项目合集","Thanks to all the contributors!","Languages","twitter","延伸應用","Coding"],"sub_categories":["Uncategorized","Other user interfaces","Github Actions","大语言对话模型及数据","Other","GPT插件","DevOps","Javascript","反向代理網站（Reverse Proxy）"],"readme":"# chatgpt-action\n\nLet chatgpt review your PR.\n\nPlease note： this repo is a WIP and I do not recommend you to use it in production!\n\n## Ideas\n\n- 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.\n- Implement ChatGPT's review feedback as a commit or suggested change ([#27](https://github.com/kxxt/chatgpt-action/issues/27))\n\n## Warning\n\n- code of experimental quality!\n- ChatGPT often generates misleading comments which could confuse your contributors and that's\none reason against using this action in production.\n- Sometimes you will get 403 errors when the generated prompt is too long or considered an attack(perhaps?). \n  - ~~Split the prompt and let ChatGPT comment on every single file should resolve this issue most of the time.~~ \n  - This feature has been implemented but it is unstable. Add `split: true` to `with` node in your config to enable this feature.\n    - 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\n## Showcase\n\n### YOLO Mode: Give all the info to ChatGPT in one go\n\n- https://github.com/kxxt/chatgpt-action/pull/12\n- https://github.com/kxxt/chatgpt-action/pull/10\n- https://github.com/kxxt/chatgpt-action/pull/9\n\n### Using Unstable Split Feature\n\n- https://github.com/kxxt/chatgpt-action/pull/20\n- https://github.com/kxxt/chatgpt-action/pull/22\n\n## Usage\n\n```yaml\non: [pull_request]\n\nname: ChatGPT CodeReview\n\njobs:\n  chatgpt_comment:\n    runs-on: ubuntu-latest\n    name: Let chatgpt comment on your PR.\n    steps:\n      - name: ChatGPT comment\n        uses: kxxt/chatgpt-action@v0.3\n        id: chatgpt\n        with:\n          number: ${{ github.event.pull_request.number }}\n          sessionToken: ${{ secrets.CHATGPT_SESSION_TOKEN }}\n          split: 'yolo'  # Use true to enable the unstable split feature.\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkxxt%2Fchatgpt-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkxxt%2Fchatgpt-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkxxt%2Fchatgpt-action/lists"}