-
Notifications
You must be signed in to change notification settings - Fork 23
45 lines (42 loc) · 1.45 KB
/
qoder-code-review.yml
File metadata and controls
45 lines (42 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Qoder Auto Code Review
on:
pull_request:
types: [ opened, reopened ]
branches: [ "main" ]
issue_comment:
types: [created]
workflow_dispatch:
inputs:
pr_number:
description: 'PR number to review'
required: true
type: string
jobs:
qoder-review:
runs-on: ubuntu-slim
if: |
github.event_name != 'issue_comment' ||
(github.event.issue.pull_request && contains(github.event.comment.body, '@tair-ci review'))
permissions:
contents: read
pull-requests: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: hide old comment
uses: int128/hide-comment-action@c0b5ed56339ed2285f922a5da4444b55270c43f3
with:
authors: "qoderai[bot]"
- name: Run Qoder Code Review
# uses: QoderAI/qoder-action@v0
uses: QoderAI/qoder-action@0881d27d15a7a93778ebc5c942d11da313ee8b7e
with:
qoder_personal_access_token: ${{ secrets.QODER_PERSONAL_ACCESS_TOKEN }}
prompt: |
/review-pr
MANDATORY_REQUIREMENT:"only use COMMENT or APPROVE as event when call submit_pending_pull_request_review. Never use REQUEST_CHANGES."
REPO:${{ github.repository }} PR_NUMBER:${{ github.event.pull_request.number || github.event.inputs.pr_number || github.event.issue.number }}
enable_qoder_github_mcp: true