From f87696747d9dec0a281e290da32573952b9f8b09 Mon Sep 17 00:00:00 2001 From: Kros Dai Date: Sat, 28 Mar 2026 17:34:30 -0400 Subject: [PATCH 1/3] =?UTF-8?q?=E2=9C=A8=20feat(ci):=20request=20Copilot?= =?UTF-8?q?=20review=20as=20non-blocking=20reviewer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Use `gh pr edit --add-reviewer @copilot` instead of the `copilot_code_review` ruleset rule which blocks merges - Copilot comments still require resolution but won't gate merge state Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/claude-code-review.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index ab7166f..b482bc7 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -28,6 +28,12 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 steps: + - name: Request Copilot review + run: gh pr edit "$PR_NUMBER" --add-reviewer @copilot + env: + GH_TOKEN: ${{ github.token }} + PR_NUMBER: ${{ github.event.pull_request.number }} + - uses: anthropics/claude-code-action@v1 with: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} From 91a21d4876d60e6d405c54086367ab02fdc8eb80 Mon Sep 17 00:00:00 2001 From: Kros Dai Date: Sat, 28 Mar 2026 17:37:21 -0400 Subject: [PATCH 2/3] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(ci):=20rename?= =?UTF-8?q?=20workflow=20to=20`code-review.yml`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Rename from `claude-code-review.yml` to `code-review.yml` since the workflow now includes both Claude and Copilot reviews - Update workflow name and README references accordingly Co-Authored-By: Claude Opus 4.6 (1M context) --- .../{claude-code-review.yml => code-review.yml} | 2 +- README.md | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) rename .github/workflows/{claude-code-review.yml => code-review.yml} (98%) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/code-review.yml similarity index 98% rename from .github/workflows/claude-code-review.yml rename to .github/workflows/code-review.yml index b482bc7..d7dfe5f 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: 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 From 0492e01e3f7edbf41d7a0ed6d9cbf91a348d05ef Mon Sep 17 00:00:00 2001 From: Kros Dai Date: Sat, 28 Mar 2026 17:40:29 -0400 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=90=9B=20fix(ci):=20pass=20`-R`=20fla?= =?UTF-8?q?g=20to=20`gh=20pr=20edit`=20for=20repo=20context?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - `gh pr edit` fails without a git repo; use `-R` to specify the repo explicitly instead of requiring a checkout step Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/code-review.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/code-review.yml b/.github/workflows/code-review.yml index d7dfe5f..d529936 100644 --- a/.github/workflows/code-review.yml +++ b/.github/workflows/code-review.yml @@ -29,10 +29,12 @@ jobs: timeout-minutes: 15 steps: - name: Request Copilot review - run: gh pr edit "$PR_NUMBER" --add-reviewer @copilot + 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: