Update code-review.yml
This commit is contained in:
28
.github/workflows/code-review.yml
vendored
28
.github/workflows/code-review.yml
vendored
@@ -1,20 +1,8 @@
|
||||
name: Code Review
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, reopened, synchronize]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: self_hosted
|
||||
steps:
|
||||
- uses: anc95/ChatGPT-CodeReview@v1.0.21
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||
# optional
|
||||
LANGUAGE: Korean
|
||||
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 }}
|
||||
Reference in New Issue
Block a user