diff --git a/.github/workflows/code-review.yml b/.github/workflows/code-review.yml index 6d19388..c2ef4d1 100644 --- a/.github/workflows/code-review.yml +++ b/.github/workflows/code-review.yml @@ -1,8 +1,17 @@ -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 +name: Code Review +on: + issue_comment: + types: [created, edited] + +jobs: + code-review: + runs-on: self_hosted + steps: + - name: Gitea Code Review + uses: ingress-it-solutions/gitea-code-review-action@v1.9 + with: + PROGRAMMING_LANGUAGE: 'c#' + OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + FULL_REVIEW_COMMENT: 'openai' + REVIEW_COMMENT_PREFIX: 'openai:' \ No newline at end of file