File tree 2 files changed +4
-6
lines changed
sqlmesh/integrations/github/cicd
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ def _run_all(controller: GithubController) -> None:
192
192
193
193
controller .update_linter_check (status = GithubCheckStatus .QUEUED )
194
194
195
- lint_error = controller ._linter_errors is not None
195
+ lint_error = controller ._linter_error
196
196
197
197
controller .update_linter_check (
198
198
status = GithubCheckStatus .COMPLETED ,
Original file line number Diff line number Diff line change @@ -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." )
@@ -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" ,
You can’t perform that action at this time.
0 commit comments