Unverified 提交 253d3b1f authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

Use direct username filtering for Claude PR workflow (#2048)

<!-- CURSOR_SUMMARY --> > [!NOTE] > <sup>[Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) is generating a summary for commit 42d84531e99ac84b5576f6c490a36813706d8c25. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
上级 7927d327
......@@ -7,24 +7,15 @@ on:
types: [opened, synchronize, ready_for_review, reopened]
jobs:
debug-author:
runs-on: ubuntu-latest
steps:
- name: Debug author association
run: |
echo "Author: ${{ github.event.pull_request.user.login }}"
echo "Author association: ${{ github.event.pull_request.author_association }}"
echo "Event name: ${{ github.event_name }}"
echo "Action: ${{ github.event.action }}"
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.author_association == 'OWNER' ||
github.event.pull_request.author_association == 'MEMBER'
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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论