Skip to content

Commit 50be28f

Browse files
committed
Fix: Respect the project configuration if the forward-only suffix was not set in the bot's config
1 parent 9095c07 commit 50be28f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sqlmesh/integrations/github/cicd/controller.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,10 +479,11 @@ def pr_targets_prod_branch(self) -> bool:
479479

480480
@property
481481
def forward_only_plan(self) -> bool:
482+
default = self._context.config.plan.forward_only
482483
head_ref = self._pull_request.head.ref
483484
if isinstance(head_ref, str):
484-
return head_ref.endswith(self.bot_config.forward_only_branch_suffix)
485-
return False
485+
return head_ref.endswith(self.bot_config.forward_only_branch_suffix) or default
486+
return default
486487

487488
@classmethod
488489
def _append_output(cls, key: str, value: str) -> None:

0 commit comments

Comments
 (0)