qwer
This commit is contained in:
30
.github/workflows/code-review.yml
vendored
30
.github/workflows/code-review.yml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user