From 4c217cbe555395bd61a7e14aa21af73a04336263 Mon Sep 17 00:00:00 2001 From: vlad-activeloop Date: Tue, 20 Jan 2026 14:00:08 +0400 Subject: [PATCH 1/4] add claude pr review --- .github/workflows/pr-review.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/pr-review.yaml diff --git a/.github/workflows/pr-review.yaml b/.github/workflows/pr-review.yaml new file mode 100644 index 0000000000..1376f7e00e --- /dev/null +++ b/.github/workflows/pr-review.yaml @@ -0,0 +1,27 @@ +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 }}" From a7afd7549bdd8555334c1ab6c7c0aa1f96792ee8 Mon Sep 17 00:00:00 2001 From: vlad-activeloop Date: Tue, 20 Jan 2026 14:03:05 +0400 Subject: [PATCH 2/4] edits --- .github/workflows/pr-review.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-review.yaml b/.github/workflows/pr-review.yaml index 1376f7e00e..fbbef18478 100644 --- a/.github/workflows/pr-review.yaml +++ b/.github/workflows/pr-review.yaml @@ -18,7 +18,7 @@ jobs: ( github.event_name == 'issue_comment' && github.event.issue.pull_request && - github.event.comment.user.type != 'Bot' && + toLower(github.event.comment.user.type) != 'bot' && contains(github.event.comment.body, '/claude-review') ) uses: >- From 68d6b05110e4fc6dbd9479d0ff9bb20109e0ca6e Mon Sep 17 00:00:00 2001 From: vlad-activeloop Date: Tue, 20 Jan 2026 14:11:51 +0400 Subject: [PATCH 3/4] edits --- .github/workflows/pr-review.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-review.yaml b/.github/workflows/pr-review.yaml index fbbef18478..1376f7e00e 100644 --- a/.github/workflows/pr-review.yaml +++ b/.github/workflows/pr-review.yaml @@ -18,7 +18,7 @@ jobs: ( github.event_name == 'issue_comment' && github.event.issue.pull_request && - toLower(github.event.comment.user.type) != 'bot' && + github.event.comment.user.type != 'Bot' && contains(github.event.comment.body, '/claude-review') ) uses: >- From 2b0c6902ebca8fee95816e6f780a50c49e9ecac5 Mon Sep 17 00:00:00 2001 From: vlad-activeloop Date: Tue, 27 Jan 2026 13:26:12 +0400 Subject: [PATCH 4/4] test --- .github/workflows/pr-review.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/pr-review.yaml b/.github/workflows/pr-review.yaml index 1376f7e00e..b140b9a991 100644 --- a/.github/workflows/pr-review.yaml +++ b/.github/workflows/pr-review.yaml @@ -25,3 +25,24 @@ jobs: 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: delete workflow run + uses: actions/github-script@v8 + with: + script: | + await new Promise(resolve => setTimeout(resolve, 5000)); + try { + await github.rest.actions.deleteWorkflowRun({ + owner: context.repo.owner, + repo: context.repo.repo, + run_id: context.runId + }); + console.log('Deleted workflow run'); + } catch (error) { + console.log('Could not delete run:', error.message); + }