From 325c5eeecff68a5dfc9d606394a791a148c92a43 Mon Sep 17 00:00:00 2001 From: UVCLimHun Date: Thu, 17 Apr 2025 15:09:35 +0900 Subject: [PATCH] qwer --- .github/workflows/code-review.yml | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/.github/workflows/code-review.yml b/.github/workflows/code-review.yml index 09e027b..42a9add 100644 --- a/.github/workflows/code-review.yml +++ b/.github/workflows/code-review.yml @@ -1,24 +1,20 @@ -name: Gitea GPT Code Review +name: Code Review + +permissions: + contents: read + pull-requests: write on: pull_request: types: [opened, reopened, synchronize] jobs: - review: - runs-on: self_hosted - + test: + runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Run Gitea GPT Code Review - uses: ingress-it-solutions/gitea-code-review-action@v1.13 - with: - PROGRAMMING_LANGUAGE: 'C#' - openai-key: ${{ secrets.OPENAI_API_KEY }} - gitea-token: ${{ secrets.GITEA_TOKEN }} - gitea-url: http://220.90.135.190:3000 - model: gpt-3.5-turbo - language: Korean - max-chars: 3000 + - uses: anc95/ChatGPT-CodeReview@v1.0.21 + env: + GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + # optional + LANGUAGE: Korean \ No newline at end of file