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:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, reopened, synchronize]
|
types: [opened, reopened, synchronize]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
review:
|
test:
|
||||||
runs-on: self_hosted
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- uses: anc95/ChatGPT-CodeReview@v1.0.21
|
||||||
uses: actions/checkout@v3
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
|
||||||
- name: Run Gitea GPT Code Review
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||||
uses: ingress-it-solutions/gitea-code-review-action@v1.13
|
# optional
|
||||||
with:
|
LANGUAGE: Korean
|
||||||
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
|
|
||||||
Reference in New Issue
Block a user