• This repository has been archived on 15/Aug/2024
  • Stars
    star
    553
  • Rank 80,462 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 2 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Let ChatGPT review PRs for you

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)

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.

Showcase

YOLO Mode: Give all the info to ChatGPT in one go

Using Unstable Split Feature

Usage

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 }}

More Repositories

1

aspeak

A simple text-to-speech client for Azure TTS API.
Rust
474
star
2

tracexec

Tracer for execve{,at} and pre-exec behavior, launcher for debuggers.
Rust
228
star
3

obsidian-advanced-paste

Advanced pasting functionality for obsidian
TypeScript
41
star
4

qq-firejail

给新版 Linux QQ 的 Firejail 配置文件
17
star
5

WSLDiskShrinker

Reduce WSL disk usage.
C#
16
star
6

termux

Various files for termux.
10
star
7

car_classification_tracking_and_more

Jupyter Notebook
7
star
8

slidev-template-repo

A template repo for slidev slides with automatic GitHub Pages deployment
Vue
6
star
9

kxxt-website

My personal website powered by gatsby, hosted on vercel.
MDX
5
star
10

PyAutoClockSduIn

山东大学自动疫情健康打卡
Python
5
star
11

QuitQQ

一个减少 QQ 使用的服务程序。
C#
4
star
12

PyAutoClockIn

因学校迁移到新的打卡系统 , 本工具已失效.新项目:https://github.com/kxxt/PyAutoClockSduIn
Python
3
star
13

prebuilt-cling-for-android

A prebuilt cling binary for UserLAnd on Android (arm64)
3
star
14

android

My android utilities, scripts and Lineage OS patches
Makefile
2
star
15

sduwhnews

山东大学(威海) 新闻聚合
Python
2
star
16

oiinit

This is a tool for c++ oiers to quickly create their source files and some additional files.
C#
2
star
17

table2ics-for-sduwh

这是一个把山东大学(威海)格式的Excel课表转换成日历格式的工具.
TypeScript
2
star
18

BiSS.Projects.RPGen

成绩报告生成器 (已停止维护)
C#
2
star
19

BinPP

Utility which makes writing binary literal in uVision C51 possible!
C#
2
star
20

react-typed-component

A react wrapper for typed.js. Maintained fork of https://github.com/ssbeefeater/react-typed
JavaScript
1
star
21

nixos-conf

kxxt's NixOS configuration
Nix
1
star
22

HPCHomework

My homework for HPC courses.
C++
1
star
23

leetcode

leetcode
Rust
1
star
24

my-solutions-to-exercises-in-programming-abstractions-in-cpp

This repo contains my solutions to exercises in the book Programming Abstractions in C++
C++
1
star