Update code-review.yml

This commit is contained in:
2025-04-17 14:38:28 +09:00
parent e96ed0c029
commit fe03447a9c

View File

@@ -1,28 +1,10 @@
<<<<<<< Updated upstream
name: Code Review
=======
name: Gitea GPT Code Review name: Gitea GPT Code Review
>>>>>>> Stashed changes
on: on:
issue_comment: pull_request:
types: [created, edited] types: [opened, reopened, synchronize]
jobs: 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: review:
runs-on: self_hosted runs-on: self_hosted
@@ -39,4 +21,3 @@ jobs:
model: gpt-3.5-turbo model: gpt-3.5-turbo
language: Korean language: Korean
max-chars: 3000 max-chars: 3000
>>>>>>> Stashed changes