@@ -302,7 +302,7 @@ def __init__(
302302 self ._prod_plan_builder : t .Optional [PlanBuilder ] = None
303303 self ._prod_plan_with_gaps_builder : t .Optional [PlanBuilder ] = None
304304 self ._check_run_mapping : t .Dict [str , CheckRun ] = {}
305- self ._linter_errors = None
305+ self ._linter_error = False
306306
307307 if not isinstance (get_console (), MarkdownConsole ):
308308 raise CICDBotError ("Console must be a markdown console." )
@@ -333,7 +333,7 @@ def __init__(
333333 try :
334334 self ._context .load ()
335335 except LinterError :
336- self ._linter_errors = self . _console . captured_errors
336+ self ._linter_error = True
337337
338338 @property
339339 def deploy_command_enabled (self ) -> bool :
@@ -670,13 +670,11 @@ def update_linter_check(
670670 def conclusion_handler (
671671 conclusion : GithubCheckConclusion ,
672672 ) -> 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"
676674
677675 title = "Linter results"
678676
679- return conclusion , title , test_summary
677+ return conclusion , title , linter_summary
680678
681679 self ._update_check_handler (
682680 check_name = "SQLMesh - Linter" ,
0 commit comments