mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-12 18:15:48 +00:00
fix(ci): preserve AI review variable contract
This commit is contained in:
1 parent
e1271e2dbf
commit
d6ec5eeebd
5 files changed
+12
-15
No files matched your search
@@ -22,16 +22,16 @@ describe('PR-Agent review lane migration', () => {
|
||||
expect(workflow).toContain('uses: qodo-ai/pr-agent');
|
||||
expect(workflow).toContain('OPENAI.API_BASE');
|
||||
expect(workflow).toContain('OPENAI_KEY');
|
||||
expect(workflow).toContain('config.model');
|
||||
expect(workflow).toContain('vars.AI_REVIEW_BASE_URL');
|
||||
expect(workflow).toContain('vars.AI_REVIEW_MODEL');
|
||||
expect(workflow).toContain('secrets.AI_REVIEW_API_KEY');
|
||||
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).not.toContain('uses: anthropics/claude-code-action@v1');
|
||||
expect(workflow).not.toContain('AI_REVIEW_API_KEY');
|
||||
|
||||
expect(config).toContain('[config]');
|
||||
expect(config).toContain('git_provider = "github"');
|
||||
expect(config).toMatch(/\bmodel\s*=\s*"[^"\n]+"/);
|
||||
expect(config).toContain('[pr_reviewer]');
|
||||
expect(config).not.toContain('auto_review = true');
|
||||
expect(config).not.toContain('claude-code-action');
|
||||
|
||||
Reference in new issue
Block a user