Skip to content

Conversation

@JasonXuDeveloper
Copy link
Owner

@JasonXuDeveloper JasonXuDeveloper commented Jan 27, 2026

Summary

  • Remove claude-code-review.yml and claude.yml workflows
  • Update auto-approve.yml to check Copilot reviews instead of Claude
  • Skip Unity tests for CI-only workflow changes (saves ~10 min per PR)

Why

Running Claude code review via CI (~100 times/day on different GitHub runners) may trigger account suspension due to suspicious activity patterns. GitHub Copilot code review via rulesets is the native, integrated solution.

Changes

File Action
.github/workflows/claude-code-review.yml Deleted
.github/workflows/claude.yml Deleted
.github/workflows/auto-approve.yml Check copilot[bot] review existence + inline comments
.github/workflows/pr-tests.yml Only run Unity tests for relevant file changes

How Copilot Review Works

  • Copilot always leaves "Comment" reviews (never "Approve" or "Request changes")
  • Auto-approve checks: 1) Copilot review exists, 2) No inline comments = no issues
  • Ruleset already configured with copilot_code_review enabled

Unity Test Skip Logic

Tests now only run when these paths change:

  • UnityProject/Packages/com.jasonxudeveloper.jengine.core/**
  • UnityProject/Packages/com.jasonxudeveloper.jengine.util/**
  • UnityProject/Assets/Tests/**
  • .github/workflows/unity-tests.yml
  • .github/workflows/pr-tests.yml

CI-only changes (auto-approve, labeler, etc.) will skip Unity tests.

Test plan

  • Verify Copilot automatically reviews this PR
  • Verify auto-approve triggers after tests pass + no Copilot comments
  • Verify no Claude workflows appear in Actions tab
  • Verify future CI-only PRs skip Unity tests

🤖 Generated with Claude Code

- Remove claude-code-review.yml and claude.yml workflows
- Update auto-approve.yml to check Copilot inline comments instead of Claude
- Copilot code review is now configured via repository ruleset

This change reduces CI costs and avoids potential account suspension from
running Claude ~100 times/day across different GitHub runners.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>
Copilot AI review requested due to automatic review settings January 27, 2026 22:41
@github-actions github-actions bot added the ci label Jan 27, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates from Claude-based code review (via CI workflows) to GitHub Copilot code review (via repository rulesets). The change is motivated by avoiding potential account suspension from running Claude reviews ~100 times/day on different GitHub runners.

Changes:

  • Removed two Claude workflow files that triggered reviews via CI
  • Updated auto-approve workflow to check for Copilot inline comments instead of Claude bot comments
  • Changed workflow trigger to no longer wait for "Claude Code Review" workflow completion

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/claude.yml Deleted - removed Claude interactive bot workflow
.github/workflows/claude-code-review.yml Deleted - removed automated Claude PR review workflow
.github/workflows/auto-approve.yml Updated logic to detect Copilot review comments and removed Claude workflow from triggers

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

github-actions bot commented Jan 27, 2026

Unity Test Results

EditMode: All tests passed
PlayMode: All tests passed

Unity Version: 2022.3.55f1
Project Path: UnityProject

✅ All tests passed! The PR is ready for review.

View workflow run

Click here to view the full workflow run

JasonXuDeveloper and others added 2 commits January 28, 2026 09:48
…hanges

- Check Copilot review existence before checking comments (fixes race condition)
- Only trigger Unity tests for unity-tests.yml and pr-tests.yml changes
- Other CI workflow changes (auto-approve, etc.) no longer run Unity tests

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>
- Reviews: copilot-pull-request-reviewer[bot]
- Comments: Copilot

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>
Copilot AI review requested due to automatic review settings January 27, 2026 22:56
JasonXuDeveloper and others added 2 commits January 28, 2026 09:56
Resolved threads should not block auto-approve. Use GraphQL to count
only unresolved review threads from Copilot.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JasonXuDeveloper JasonXuDeveloper merged commit e64961d into master Jan 27, 2026
17 checks passed
@JasonXuDeveloper JasonXuDeveloper deleted the feat/migrate-to-copilot-review branch January 27, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants