Skip to content

Commit 0a6f54f

Browse files
authored
ci: pr review bot
1 parent 68d0706 commit 0a6f54f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/pr-review.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: PR Review
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, synchronize]
6+
7+
jobs:
8+
comment:
9+
permissions:
10+
issues: write
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/github-script@v7
14+
with:
15+
github-token: ${{ secrets.PR_REVIEW_TOKEN }}
16+
script: |
17+
github.rest.issues.createComment({
18+
issue_number: context.issue.number,
19+
owner: context.repo.owner,
20+
repo: context.repo.repo,
21+
body: "@codex review"
22+
})

0 commit comments

Comments
 (0)