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
|
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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user