feat: add /assign-reviewers command with GitHub Action and Slack integration #1
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: Auto PR Reviewer | |
| on: | |
| pull_request: | |
| types: [opened, synchronize] | |
| jobs: | |
| assign-reviewers: | |
| runs-on: ubuntu-latest | |
| # Skip bot-authored PRs entirely | |
| if: > | |
| github.actor != 'dependabot[bot]' && | |
| github.actor != 'renovate[bot]' && | |
| github.actor != 'github-actions[bot]' | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install Claude Code CLI | |
| run: npm install -g @anthropic-ai/claude-code | |
| - name: Run /assign-reviewers | |
| env: | |
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
| run: | | |
| claude --dangerously-skip-permissions \ | |
| -p "/assign-reviewers ${{ github.event.pull_request.html_url }}" |