mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 04:18:05 +00:00
fix(ci): allow PR-Agent dispatch bot reruns
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user