Skip to content

Commit 20aa1bc

Browse files
committed
always reject no changes
1 parent 75acbab commit 20aa1bc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/test-llm-autocompletion/runner.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,17 @@ class TestRunner {
4545
actualValue = "(no changes parsed)"
4646
}
4747

48+
// Auto-reject if no changes were parsed
49+
if (actualValue === "(no changes parsed)") {
50+
return {
51+
testCase,
52+
isApproved: false,
53+
completion,
54+
actualValue,
55+
llmRequestDuration,
56+
}
57+
}
58+
4859
const approvalResult = await checkApproval(testCase.category, testCase.name, testCase.input, actualValue)
4960

5061
return {

0 commit comments

Comments
 (0)