Skip to content

Commit 8e69933

Browse files
committed
branch_worker: update ai_review_comment_preprocessor
Make a regex detecting start of the response more specific. Signed-off-by: Ihor Solodrai <[email protected]>
1 parent 40da435 commit 8e69933

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel_patches_daemon/branch_worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,7 @@ async def submit_pr_summary(
14571457

14581458
def ai_review_comment_preprocessor(self, body: str) -> str:
14591459
# find the first line starting with > and remove everyting prior
1460-
match = re.search(r"^>.*$", body, re.MULTILINE)
1460+
match = re.search(r"^> diff --git.*$", body, re.MULTILINE)
14611461
if match:
14621462
body = body[match.start() :]
14631463
# remove triple backticks

0 commit comments

Comments
 (0)