@@ -302,7 +302,7 @@ def __init__(
302
302
self ._prod_plan_builder : t .Optional [PlanBuilder ] = None
303
303
self ._prod_plan_with_gaps_builder : t .Optional [PlanBuilder ] = None
304
304
self ._check_run_mapping : t .Dict [str , CheckRun ] = {}
305
- self ._linter_errors = None
305
+ self ._linter_error = False
306
306
307
307
if not isinstance (get_console (), MarkdownConsole ):
308
308
raise CICDBotError ("Console must be a markdown console." )
@@ -333,7 +333,7 @@ def __init__(
333
333
try :
334
334
self ._context .load ()
335
335
except LinterError :
336
- self ._linter_errors = self . _console . captured_errors
336
+ self ._linter_error = True
337
337
338
338
@property
339
339
def deploy_command_enabled (self ) -> bool :
@@ -670,13 +670,11 @@ def update_linter_check(
670
670
def conclusion_handler (
671
671
conclusion : GithubCheckConclusion ,
672
672
) -> t .Tuple [GithubCheckConclusion , str , t .Optional [str ]]:
673
- test_summary = (
674
- self ._linter_errors or self ._console .consume_captured_output () or "Linter Success"
675
- )
673
+ linter_summary = self ._console .consume_captured_output () or "Linter Success"
676
674
677
675
title = "Linter results"
678
676
679
- return conclusion , title , test_summary
677
+ return conclusion , title , linter_summary
680
678
681
679
self ._update_check_handler (
682
680
check_name = "SQLMesh - Linter" ,
0 commit comments