Skip to content

Commit db9904e

Browse files
add guard for model difference
1 parent 57729f8 commit db9904e

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

sqlmesh/integrations/github/cicd/controller.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -461,12 +461,13 @@ def get_plan_summary(self, plan: Plan) -> str:
461461
context_diff=plan.context_diff,
462462
no_diff=False,
463463
)
464-
self._console.show_model_difference_summary(
465-
context_diff=plan.context_diff,
466-
environment_naming_info=plan.environment_naming_info,
467-
default_catalog=self._context.default_catalog,
468-
no_diff=False,
469-
)
464+
if plan.context_diff.has_changes:
465+
self._console.show_model_difference_summary(
466+
context_diff=plan.context_diff,
467+
environment_naming_info=plan.environment_naming_info,
468+
default_catalog=self._context.default_catalog,
469+
no_diff=False,
470+
)
470471
difference_summary = self._console.consume_captured_output()
471472
self._console._show_missing_dates(plan, self._context.default_catalog)
472473
missing_dates = self._console.consume_captured_output()

0 commit comments

Comments
 (0)