Update code-review.yml
This commit is contained in:
23
.github/workflows/code-review.yml
vendored
23
.github/workflows/code-review.yml
vendored
@@ -1,28 +1,10 @@
|
||||
<<<<<<< Updated upstream
|
||||
name: Code Review
|
||||
=======
|
||||
name: Gitea GPT Code Review
|
||||
|
||||
>>>>>>> Stashed changes
|
||||
on:
|
||||
issue_comment:
|
||||
types: [created, edited]
|
||||
pull_request:
|
||||
types: [opened, reopened, synchronize]
|
||||
|
||||
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:
|
||||
runs-on: self_hosted
|
||||
|
||||
@@ -39,4 +21,3 @@ jobs:
|
||||
model: gpt-3.5-turbo
|
||||
language: Korean
|
||||
max-chars: 3000
|
||||
>>>>>>> Stashed changes
|
||||
|
||||
Reference in New Issue
Block a user