diff --git a/.github/workflows/ai-review.yml b/.github/workflows/ai-review.yml index 6a4f5289..1f482bad 100644 --- a/.github/workflows/ai-review.yml +++ b/.github/workflows/ai-review.yml @@ -21,7 +21,8 @@ concurrency: github.event.comment.body != '/review' || ( github.event.sender.type == 'Bot' && - github.event.sender.login != 'github-actions[bot]' + github.event.sender.login != 'github-actions[bot]' && + github.event.sender.login != 'ccs-reviewer[bot]' ) ) ) && format('skip-{0}', github.run_id) || @@ -80,7 +81,8 @@ jobs: github.event.comment.body == '/review' && ( contains(fromJSON('["COLLABORATOR","MEMBER","OWNER"]'), github.event.comment.author_association) || - github.event.sender.login == 'github-actions[bot]' + github.event.sender.login == 'github-actions[bot]' || + github.event.sender.login == 'ccs-reviewer[bot]' ) ) ) diff --git a/tests/unit/scripts/github/ai-review-workflow.test.ts b/tests/unit/scripts/github/ai-review-workflow.test.ts index 09621948..f32ada6d 100644 --- a/tests/unit/scripts/github/ai-review-workflow.test.ts +++ b/tests/unit/scripts/github/ai-review-workflow.test.ts @@ -29,6 +29,7 @@ describe('PR-Agent review lane migration', () => { expect(workflow).toContain('github_action_config.auto_review'); expect(workflow).toContain("github.event.comment.body == '/review'"); expect(workflow).toContain('github.event.comment.author_association'); + expect(workflow).toContain('ccs-reviewer[bot]'); expect(workflow).toContain("format('skip-{0}', github.run_id)"); expect(workflow).toContain("format('dispatch-{0}', github.run_id)"); expect(workflow).toContain('CCS_REVIEWER_APP_ID');