From 75e82f03d5a6ca15ac330c6887b54b622bdb71c1 Mon Sep 17 00:00:00 2001 From: UVCLimHun Date: Thu, 17 Apr 2025 16:11:23 +0900 Subject: [PATCH] Update code-review.yml --- .github/workflows/code-review.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) 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