Skip to content

GOWA - WhatsApp REST API with support for UI, Multi Account, Webhooks, and MCP, and Chatwoot. Built with Golang for efficient memory use.

feat: expand Claude Code Review workflow to include external PRs

Aldino Kemal3af98902efa0
diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml
index e9beb263..92946f17 100644
--- a/.github/workflows/claude-code-review.yml
+++ b/.github/workflows/claude-code-review.yml
@@ -1,7 +1,7 @@
-name: Claude Code Review - Internal PRs
+name: Claude Code Review - Internal and External PRs
on:
- # Handle PRs from the same repository
+ # Handle PRs from the same repository (internal PRs)
pull_request:
types: [opened, synchronize]
paths:
@@ -12,12 +12,21 @@ on:
- "src/views/**/*.css"
- "src/views/**/*.js"
- "src/views/**/*.svg"
+
+ # Handle PRs from external forks
+ pull_request_target:
+ types: [opened, synchronize]
+ paths:
+ - "src/**/*.go"
+ - "go.mod"
+ - "go.sum"
+ - "src/views/**/*.html"
+ - "src/views/**/*.css"
+ - "src/views/**/*.js"
+ - "src/views/**/*.svg"
jobs:
claude-review:
- # Only run for internal PRs (same repository)
- if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
-
runs-on: ubuntu-latest
permissions:
contents: read
@@ -29,6 +38,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
with:
+ # For pull_request_target, we need to checkout the PR head
+ ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 1
- name: Run Claude Code Review