diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml new file mode 100644 index 00000000..638a4319 --- /dev/null +++ b/.github/workflows/claude-code-review.yml @@ -0,0 +1,23 @@ +name: Claude Code Review + +on: + pull_request: + types: [opened, synchronize] + +permissions: + contents: read + pull-requests: write + +jobs: + claude-code-review: + runs-on: ubuntu-latest + steps: + - uses: anthropics/claude-code-action@main + with: + anthropic_api_key: `${{ secrets.ANTHROPIC_API_KEY }} + direct_prompt: | + Please review this PR and provide feedback on: + - Code quality + - Potential bugs + - Security issues + - Performance improvements diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml new file mode 100644 index 00000000..5aebed87 --- /dev/null +++ b/.github/workflows/claude.yml @@ -0,0 +1,26 @@ +name: Claude + +on: + issue_comment: + types: [created] + pull_request_review_comment: + types: [created] + pull_request_review: + types: [submitted] + +permissions: + contents: write + pull-requests: write + issues: write + +jobs: + claude: + runs-on: ubuntu-latest + if: | + (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) || + (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) || + (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) + steps: + - uses: anthropics/claude-code-action@main + with: + anthropic_api_key: `${{ secrets.ANTHROPIC_API_KEY }} diff --git a/.github/workflows/your-workflow.yml b/.github/workflows/your-workflow.yml new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/.github/workflows/your-workflow.yml @@ -0,0 +1 @@ +