Remove obsolete Docker/Buildkite infra, update to Supabase-based local dev #247
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Claude Code | |
| on: | |
| issue_comment: | |
| types: [created] | |
| pull_request_review_comment: | |
| types: [created] | |
| issues: | |
| types: [opened, assigned] | |
| pull_request_review: | |
| types: [submitted] | |
| jobs: | |
| claude: | |
| if: | | |
| (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@intern')) || | |
| (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@intern')) || | |
| (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@intern')) || | |
| (github.event_name == 'issues' && (contains(github.event.issue.body, '@intern') || contains(github.event.issue.title, '@intern'))) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| issues: write | |
| id-token: write | |
| actions: read # Required for Claude to read CI results on PRs | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 1 | |
| - name: Generate GitHub App token | |
| id: app-token | |
| uses: actions/create-github-app-token@v1 | |
| with: | |
| app-id: ${{ secrets.APP_ID }} | |
| private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
| - name: Run Claude Code | |
| id: claude | |
| uses: bitnimble/claude-code-action@main | |
| with: | |
| claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} | |
| github_token: ${{ steps.app-token.outputs.token }} | |
| trigger_phrase: '@intern' | |
| # Do not add these to .claude/settings.json - branch protections on GH allows these to be run safely for the GH bot, but these aren't necessarily safe when running locally | |
| claude_args: --max-turns 200 --model opus --allowedTools "Bash(bun:*),Bash(gh pr create:*),Bash(gh pr checkout:*),Bash(gh pr edit:*),Bash(gh run view:*),Bash(git fetch:*),Bash(git rebase:*),Bash(git show:*),Bash(git restore:*),Bash(git reset:*),Bash(git checkout:*),Bash(git switch:*),Bash(git stash:*)" |