mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-02 14:22:28 +08:00
Clean up outdated review comments before new review
This commit is contained in:
9
.github/workflows/claude-code.yml
vendored
9
.github/workflows/claude-code.yml
vendored
@@ -62,6 +62,15 @@ jobs:
|
|||||||
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
|
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
|
||||||
aws-region: us-east-1
|
aws-region: us-east-1
|
||||||
|
|
||||||
|
- name: Clean up outdated review comments
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
# Delete all previous review comments from github-actions bot
|
||||||
|
gh api repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/comments \
|
||||||
|
--jq '.[] | select(.user.login == "github-actions[bot]") | .id' | \
|
||||||
|
xargs -I {} gh api repos/${{ github.repository }}/pulls/comments/{} -X DELETE 2>/dev/null || true
|
||||||
|
|
||||||
- name: Run Claude Code PR Review
|
- name: Run Claude Code PR Review
|
||||||
uses: anthropics/claude-code-action@v1
|
uses: anthropics/claude-code-action@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user