diff --git a/.github/workflows/code-review.yml b/.github/workflows/code-review.yml index d87f11b..6d19388 100644 --- a/.github/workflows/code-review.yml +++ b/.github/workflows/code-review.yml @@ -1,20 +1,8 @@ -name: Code Review - -permissions: - contents: read - pull-requests: write - -on: - pull_request: - types: [opened, reopened, synchronize] - -jobs: - test: - runs-on: self_hosted - steps: - - uses: anc95/ChatGPT-CodeReview@v1.0.21 - env: - GITHUB_TOKEN: ${{ secrets.TOKEN }} - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - # optional - LANGUAGE: Korean \ No newline at end of file +name: Gitea Code Review +uses: ingress-it-solutions/gitea-code-review-action@v1.9 +with: + PROGRAMMING_LANGUAGE: 'c#' + REVIEW_COMMENT_PREFIX: 'openai:' + FULL_REVIEW_COMMENT: 'openai' + OPENAI_TOKEN: ${{ secrets.OPENAI_API_KEY }} + GITHUB_TOKEN: ${{ secrets.TOKEN }} \ No newline at end of file