diff --git a/.github/workflows/code-review.yml b/.github/workflows/code-review.yml new file mode 100644 index 0000000..b7b8123 --- /dev/null +++ b/.github/workflows/code-review.yml @@ -0,0 +1,22 @@ +name: Code Review + +on: + pull_request: + types: [opened, synchronize] + +jobs: + code_review: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-node@v3 + with: + node-version: 18 + + - run: npm install -g chatgpt-code-review + + - run: chatgpt-code-review + env: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} \ No newline at end of file