Skip to content

Commit a8950a4

Browse files
liuxiaotongclaude
andauthored
ci: auto merge PR on review approved (#11)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 598e43e commit a8950a4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/auto-review.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
permissions:
88
pull-requests: write
9-
contents: read
9+
contents: write
1010
checks: read
1111

1212
jobs:
@@ -277,6 +277,10 @@ jobs:
277277
${SUMMARY}
278278
EOF
279279
)"
280+
281+
# Auto merge — review 通过,自动合并
282+
gh pr merge "$PR_NUMBER" --squash --auto
283+
280284
exit 0
281285
else
282286
echo "PR not approved — review has issues"

0 commit comments

Comments
 (0)