Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/pr-review.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Claude PR Review

on:
issue_comment:
types:
- created
pull_request:
types:
- opened

jobs:
claude_review:
if: |
(
github.event_name == 'pull_request' &&
github.event.pull_request.draft == false
) ||
(
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
github.event.comment.user.type != 'Bot' &&
contains(github.event.comment.body, '/claude-review')
)
uses: >-
ActiveloopAI/shared-github-actions/.github/workflows/claude-pr-review.yaml@main
secrets:
OP_SERVICE_ACCOUNT_TOKEN: "${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}"

cleanup:
needs: claude_review
if: always()
runs-on: ubuntu-latest
steps:
- name: cleanup workflow runs
uses: mattraks/delete-workflow-runs@v2.1.0
with:
Comment on lines +33 to +36
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

retain_days: 0 + keep_minimum_runs: 0 deletes all workflow history for this action on every run, including potentially the run currently in progress — you'll lose all CI audit trail for Claude reviews.

Consider keeping at least a few runs for debugging:

Suggested change
steps:
- name: cleanup workflow runs
uses: mattraks/delete-workflow-runs@v2.1.0
with:
retain_days: 30
keep_minimum_runs: 5

token: "${{ github.token }}"
repository: "${{ github.repository }}"
retain_days: 0
keep_minimum_runs: 0
delete_workflow_pattern: Claude PR Review
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ tmp/
.env
.env.*
coverage/
bench/*.json
Loading