refactor: migrate generator to Effect pattern #582
Workflow file for this run
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 PR Review | |
| on: | |
| pull_request_review_comment: | |
| types: [created] | |
| issue_comment: | |
| types: [created] | |
| pull_request: | |
| types: [opened, synchronize] | |
| jobs: | |
| claude-review: | |
| if: | | |
| (github.event_name == 'pull_request' && contains(github.event.pull_request.body, '@claude')) || | |
| (github.event_name == 'issue_comment' && github.event.issue.pull_request && contains(github.event.comment.body, '@claude')) || | |
| (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - uses: anthropics/claude-code-action@v1 | |
| with: | |
| # For Max subscription, use OAuth token instead of API key | |
| oauth_token: ${{ secrets.CLAUDE_OAUTH_TOKEN }} | |
| # anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} # Only for API users |