GOWA - WhatsApp REST API with support for UI, Multi Account, Webhooks, and MCP, and Chatwoot. Built with Golang for efficient memory use.
Go botgogolanggolang-whatsappgolang-whatsapp-apirestrest-apiwhatsappwhatsapp-apiwhatsapp-api-gowhatsapp-multi-devicewhatsapp-web-multi-device
feat: add manual code review workflow for PRs
Aldino Kemal7047767419b1
diff --git a/.github/workflows/claude-code-review-manual.yml b/.github/workflows/claude-code-review-manual.ymlnew file mode 100644index 00000000..c8a372b8--- /dev/null+++ b/.github/workflows/claude-code-review-manual.yml@@ -0,0 +1,77 @@+name: Claude Code Review - Manual Fork PR Review++on:+ workflow_dispatch:+ inputs:+ pr_number:+ description: 'PR number to review'+ required: true+ type: string+ review_focus:+ description: 'Specific areas to focus on (optional)'+ required: false+ type: string++jobs:+ claude-review-manual:+ runs-on: ubuntu-latest+ permissions:+ contents: read+ pull-requests: write+ issues: write+ id-token: write++ steps:+ - name: Checkout repository+ uses: actions/checkout@v4+ with:+ fetch-depth: 1++ - name: Get PR details+ id: pr+ uses: actions/github-script@v7+ with:+ result-encoding: string+ script: |+ const { data: pr } = await github.rest.pulls.get({+ owner: context.repo.owner,+ repo: context.repo.repo,+ pull_number: ${{ inputs.pr_number }}+ });++ // Checkout the PR branch+ await exec.exec('git', ['fetch', 'origin', `pull/${{ inputs.pr_number }}/head:pr-${{ inputs.pr_number }}`]);+ await exec.exec('git', ['checkout', `pr-${{ inputs.pr_number }}`]);++ return pr.html_url;++ - name: Run Claude Code Review+ id: claude-review+ uses: anthropics/claude-code-action@beta+ with:+ claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}+ github_token: ${{ secrets.GITHUB_TOKEN }}+ direct_prompt: |+ Please review PR #${{ inputs.pr_number }} with focus on:+ ${{ inputs.review_focus || 'General code review covering Go best practices, security, and maintainability' }}++ **For Go code (.go files):**+ - Go idioms and best practices+ - Error handling patterns+ - Interface design and implementation+ - Memory management and potential leaks+ - Concurrency safety (goroutines, channels, mutexes)+ - Code organization and package structure+ - Performance considerations+ - Security vulnerabilities+ - Test coverage and quality++ **For Frontend code (HTML/CSS/JS files):**+ - JavaScript/Vue.js best practices and patterns+ - HTML semantics and accessibility+ - CSS performance and maintainability+ - Cross-browser compatibility+ - Frontend security (XSS, CSRF prevention)+ - UI/UX considerations++ Please provide constructive feedback and post it as a comment on PR #${{ inputs.pr_number }}.\ No newline at end of filediff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.ymlindex fee7d35c..b129b16c 100644--- a/.github/workflows/claude-code-review.yml+++ b/.github/workflows/claude-code-review.yml@@ -1,7 +1,8 @@-name: Claude Code Review - Internal and External PRs+name: Claude Code Review - Internal PRs Onlyon:- # Handle PRs from the same repository (internal PRs)+ # Note: Only handles internal PRs due to Claude action limitations+ # Fork PRs don't have sufficient permissions to post commentspull_request:types: [opened, synchronize]paths:@@ -12,21 +13,11 @@ 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 to avoid permission issues+ if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_nameruns-on: ubuntu-latestpermissions:contents: read@@ -38,8 +29,6 @@ jobs:- name: Checkout repositoryuses: actions/checkout@v4with:- # For pull_request_target, checkout the PR head; for pull_request, use default- ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}fetch-depth: 1- name: Run Claude Code Review