Unverified 提交 1dd83e33 authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

Add bugbot trigger & update claude PR review for all (#2186)

<!-- CURSOR_SUMMARY --> > [!NOTE] > - **Add** `bugbot-trigger.yml` workflow to auto-comment `"@BugBot run"` on `pull_request_target` events using a PAT, enabling BugBot on new/updated PRs. > - **Update** `claude-pr-review.yml` by removing the contributor `if` filter so Claude reviews run for all PRs; existing environment, permissions, and checkout behavior maintained. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 6fc76ece796cf1f8bd7fc45e6e97c4f86a94b12b. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
上级 22f25ef5
name: BugBot Trigger
on:
pull_request_target:
types: [opened, synchronize, ready_for_review, reopened]
jobs:
trigger-bugbot:
environment: ai-bots
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Comment @BugBot run
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5
with:
# Use a PAT from wwwillchen to post on their behalf
token: ${{ secrets.WWWILLCHEN_PR_RW_PAT }}
issue-number: ${{ github.event.pull_request.number }}
body: "@BugBot run"
......@@ -10,12 +10,6 @@ jobs:
claude-review:
# Has Anthropic API key, etc.
environment: ai-bots
# Only review code from regular contributors since claude code has non-trivial costs
# https://github.com/anthropics/claude-code-action/blob/main/examples/pr-review-filtered-authors.yml
if: |
github.event.pull_request.user.login == 'wwwillchen' ||
github.event.pull_request.user.login == 'azizmejri1' ||
github.event.pull_request.user.login == 'princeaden1'
runs-on: ubuntu-latest
permissions:
contents: read
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论