diff --git a/.github/workflows/code-review.yml b/.github/workflows/code-review.yml index c30aee9..a1c5a77 100644 --- a/.github/workflows/code-review.yml +++ b/.github/workflows/code-review.yml @@ -1,28 +1,10 @@ -<<<<<<< Updated upstream -name: Code Review -======= name: Gitea GPT Code Review ->>>>>>> Stashed changes on: - issue_comment: - types: [created, edited] + pull_request: + types: [opened, reopened, synchronize] jobs: -<<<<<<< Updated upstream - code-review: - runs-on: self_hosted - if: github.event.comment.user.login == 'bhavik' && startsWith(github.event.comment.body, 'openai') - steps: - - name: OpenAI Code Review - uses: bhavik/gitea-code-review-action@v0.1 - with: - PROGRAMMING_LANGUAGE: 'JavaScript' - OPENAI_TOKEN: ${{ secrets.OPENAI_API_KEY }} - GITHUB_TOKEN: ${{ secrets.GH_CUSTOM_GITHUB_TOKEN }} - FULL_REVIEW_COMMENT: 'openai' - REVIEW_COMMENT_PREFIX: 'openai:' -======= review: runs-on: self_hosted @@ -39,4 +21,3 @@ jobs: model: gpt-3.5-turbo language: Korean max-chars: 3000 ->>>>>>> Stashed changes