From 8dabac1187e773db036d60631717f8fbf4cf3d0c Mon Sep 17 00:00:00 2001 From: terjk1 <35489064+terjk1@users.noreply.github.com> Date: Mon, 23 Mar 2026 18:11:45 +0530 Subject: [PATCH 1/6] Create your-workflow.yml --- .github/workflows/your-workflow.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/workflows/your-workflow.yml diff --git a/.github/workflows/your-workflow.yml b/.github/workflows/your-workflow.yml new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/.github/workflows/your-workflow.yml @@ -0,0 +1 @@ + From 42296a4252f278cef2f8dabc482beefd00aa0b36 Mon Sep 17 00:00:00 2001 From: terjk1 <35489064+terjk1@users.noreply.github.com> Date: Mon, 23 Mar 2026 18:16:44 +0530 Subject: [PATCH 2/6] Update 1 --- .github/workflows/claude.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/claude.yml diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml new file mode 100644 index 00000000..e7c5385a --- /dev/null +++ b/.github/workflows/claude.yml @@ -0,0 +1,15 @@ +name: Claude Code Action + +on: + issue_comment: + types: [created] + pull_request_review_comment: + types: [created] + +jobs: + claude: + runs-on: ubuntu-latest + steps: + - uses: anthropics/claude-code-action@main + with: + anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} From 8b9faa3cf905e47c50046e50f27a4698c9718756 Mon Sep 17 00:00:00 2001 From: terjk1 <35489064+terjk1@users.noreply.github.com> Date: Mon, 23 Mar 2026 18:23:37 +0530 Subject: [PATCH 3/6] 2 --- .github/workflows/claude.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index e7c5385a..b287cbe7 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -1,6 +1,6 @@ name: Claude Code Action -on: +on: [push, pull_request, workflow_dispatch] issue_comment: types: [created] pull_request_review_comment: From 891b2bb24ff58a76c8d43054aad54dadbe62e288 Mon Sep 17 00:00:00 2001 From: terjk1 <35489064+terjk1@users.noreply.github.com> Date: Mon, 23 Mar 2026 18:24:22 +0530 Subject: [PATCH 4/6] 3 Removed issue comment and pull request review comment triggers. --- .github/workflows/claude.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index b287cbe7..f82bfb9d 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -1,10 +1,7 @@ name: Claude Code Action on: [push, pull_request, workflow_dispatch] - issue_comment: - types: [created] - pull_request_review_comment: - types: [created] + jobs: claude: From a3eed4e71532cf9013143b8c20845ef86e4acb62 Mon Sep 17 00:00:00 2001 From: terjk1 <35489064+terjk1@users.noreply.github.com> Date: Mon, 23 Mar 2026 19:08:51 +0530 Subject: [PATCH 5/6] 4 --- .github/workflows/claude.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index f82bfb9d..5aebed87 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -1,12 +1,26 @@ -name: Claude Code Action +name: Claude -on: [push, pull_request, workflow_dispatch] +on: + issue_comment: + types: [created] + pull_request_review_comment: + types: [created] + pull_request_review: + types: [submitted] +permissions: + contents: write + pull-requests: write + issues: write jobs: claude: runs-on: ubuntu-latest + if: | + (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) || + (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) || + (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) steps: - uses: anthropics/claude-code-action@main with: - anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} + anthropic_api_key: `${{ secrets.ANTHROPIC_API_KEY }} From bac1dc84dbfed12f18805c121a228c53d5fe29f7 Mon Sep 17 00:00:00 2001 From: terjk1 <35489064+terjk1@users.noreply.github.com> Date: Mon, 23 Mar 2026 19:09:38 +0530 Subject: [PATCH 6/6] Add Claude Code Review workflow --- .github/workflows/claude-code-review.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/claude-code-review.yml diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml new file mode 100644 index 00000000..638a4319 --- /dev/null +++ b/.github/workflows/claude-code-review.yml @@ -0,0 +1,23 @@ +name: Claude Code Review + +on: + pull_request: + types: [opened, synchronize] + +permissions: + contents: read + pull-requests: write + +jobs: + claude-code-review: + runs-on: ubuntu-latest + steps: + - uses: anthropics/claude-code-action@main + with: + anthropic_api_key: `${{ secrets.ANTHROPIC_API_KEY }} + direct_prompt: | + Please review this PR and provide feedback on: + - Code quality + - Potential bugs + - Security issues + - Performance improvements