diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/code-review.yml similarity index 80% rename from .github/workflows/claude-code-review.yml rename to .github/workflows/code-review.yml index ab7166f..d529936 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/code-review.yml @@ -1,4 +1,4 @@ -name: Claude Code Review +name: Code Review on: pull_request: @@ -28,6 +28,14 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 steps: + - name: Request Copilot review + run: | + gh pr edit "$PR_NUMBER" -R "$REPO" --add-reviewer @copilot + env: + GH_TOKEN: ${{ github.token }} + PR_NUMBER: ${{ github.event.pull_request.number }} + REPO: ${{ github.repository }} + - uses: anthropics/claude-code-action@v1 with: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} diff --git a/README.md b/README.md index a1fc101..7ec5bf0 100644 --- a/README.md +++ b/README.md @@ -4,16 +4,16 @@ Org-wide shared workflows and configurations for **taptap**. ## Reusable Workflows -### Claude Code Review +### Code Review -AI-powered pull request review using [Claude Code Action](https://github.com/anthropics/claude-code-action). It reviews every non-draft PR for code quality, correctness, and security, posting inline comments on specific lines. +AI-powered pull request review using [Claude Code Action](https://github.com/anthropics/claude-code-action) and [GitHub Copilot](https://docs.github.com/en/copilot). It reviews every non-draft PR for code quality, correctness, and security, posting inline comments on specific lines. #### Usage -Create `.github/workflows/claude-code-review.yml` in your repo: +Create `.github/workflows/code-review.yml` in your repo: ```yaml -name: Claude Code Review +name: Code Review on: pull_request: @@ -26,7 +26,7 @@ permissions: jobs: review: - uses: taptap/.github/.github/workflows/claude-code-review.yml@main + uses: taptap/.github/.github/workflows/code-review.yml@main secrets: ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} # ANTHROPIC_BASE_URL: ${{ secrets.ANTHROPIC_BASE_URL }} # optional