Skip to content

Commit c193cd6

Browse files
committed
ci: add SAM PR Reviewer to build.yml
1 parent b0bb129 commit c193cd6

File tree

2 files changed

+27
-22
lines changed

2 files changed

+27
-22
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: AI Code Review
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, synchronize, reopened]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
11+
jobs:
12+
review:
13+
runs-on: ubuntu-latest
14+
steps:
15+
# Checkout base branch (trusted) — workspace files are never from the fork
16+
- uses: actions/checkout@v6
17+
with:
18+
fetch-depth: 0
19+
20+
# Fetch PR head commit so git diff works, but don't checkout fork files
21+
- name: Fetch PR head
22+
run: git fetch origin ${{ github.event.pull_request.head.sha }}
23+
24+
- uses: roger-zhangg/sam-pr-reviewer@606c227ce12b7bc09aa57329e746c5aa24925705 # v1
25+
with:
26+
github_token: ${{ secrets.GITHUB_TOKEN }}
27+
kiro_api_key: ${{ secrets.KIRO_API_KEY }}

.github/workflows/sam-pr-reviewer.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)