From 97b4a56ff7c80538e8a06df97ab73c403699231f Mon Sep 17 00:00:00 2001 From: Jonathan Teran Carballo Date: Sun, 14 Dec 2025 13:46:09 -0300 Subject: [PATCH] feature: mostrar warning si la rama actual no es un entorno configurado --- src/git_flow/command/new.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/git_flow/command/new.py b/src/git_flow/command/new.py index 5d262dd..18a91ec 100644 --- a/src/git_flow/command/new.py +++ b/src/git_flow/command/new.py @@ -14,6 +14,10 @@ class NewCommand(Command): def run(self, args: Namespace = Namespace()): self.ensure_initialized() branch = self.ensure_right_branch() + envs = self.flowconfig["flow.branches"].split(",") + + if branch not in envs: + self.warning("La rama actual no corresponde a un entorno configurado.") self.info("Se creará una nueva rama de trabajo sobre la rama actual.") self.info("Debe seleccionar el tipo de cambio a realizar.")