fix(ci): allow PR-Agent dispatch bot reruns

This commit is contained in:
Tam Nhu Tran
2026-04-14 14:19:28 -04:00
parent 893021b304
commit 9a91901a9b
2 changed files with 5 additions and 2 deletions
+4 -2
View File
@@ -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]'
)
)
)
@@ -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');