From b28e6e729892f0c4a7a364f8b90f19238fc7d94c Mon Sep 17 00:00:00 2001 From: luen Date: Fri, 14 Aug 2026 10:16:51 +1000 Subject: [PATCH] Add Claude BugBot GitHub Action for automated PR reviews. Co-authored-by: Cursor --- .github/workflows/bugbot.yml | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/bugbot.yml diff --git a/.github/workflows/bugbot.yml b/.github/workflows/bugbot.yml new file mode 100644 index 0000000..07e8183 --- /dev/null +++ b/.github/workflows/bugbot.yml @@ -0,0 +1,41 @@ +# Claude BugBot — automated PR bug review via Claude Code CLI +# https://github.com/marketplace/actions/claude-bugbot +# +# Setup (one-time): +# 1. Run `claude setup-token` locally and copy the OAuth token (sk-ant-oat01-...) +# 2. Repo Settings → Secrets and variables → Actions → New repository secret +# Name: CLAUDE_SETUP_TOKEN +# Value: the token from step 1 +# 3. Repo Settings → Actions → General → Workflow permissions → +# "Read and write permissions" (required for inline review comments) + +name: Claude BugBot + +on: + pull_request: + types: [opened, synchronize] + +permissions: + contents: read + pull-requests: write + +jobs: + bugbot: + runs-on: ubuntu-latest + if: github.actor != 'dependabot[bot]' + steps: + - name: Checkout code + uses: actions/checkout@v7.0.1 + with: + # Full history enables BugBot's git-history lens (detects silently undone fixes) + fetch-depth: 0 + + - name: Run Claude BugBot + uses: rekpero/claude-bugbot-github-action@v1.0.14 + with: + claude-setup-token: ${{ secrets.CLAUDE_SETUP_TOKEN }} + # Optional alternatives / overrides: + # anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }} + # model: sonnet + # max-budget: '1.00' + # github-token: ${{ secrets.GH_PAT }} # PAT with repo scope if thread resolve fails