Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/bugbot.yml
Original file line number Diff line number Diff line change
@@ -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