From 180f2968e7d99cecf05508c19b6031eeef06caff Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Wed, 12 Jun 2019 15:56:55 +0200 Subject: [PATCH] [DEV] deliver: add possibility to not generate version for a specific repository --- island/actions/islandAction_deliver.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/island/actions/islandAction_deliver.py b/island/actions/islandAction_deliver.py index e591870..1898f81 100644 --- a/island/actions/islandAction_deliver.py +++ b/island/actions/islandAction_deliver.py @@ -147,11 +147,12 @@ def execute(arguments): debug.info(" (1) Major version (change API)") debug.info(" (2) Medium version (add feature)") debug.info(" (3) Minor version (Bug fix & doc)") + debug.info(" (4) Do not release & continue") input1 = input() - if input1 in ["1", "2", "3"]: + if input1 in ["1", "2", "3", "4"]: valid = True else: - debug.info("!!! Must select in range " + str(["1", "2", "3"])) + debug.info("!!! Must select in range " + str(["1", "2", "3", "4"])) if input1 == "1": version_description[0] += 1 version_description[1] = 0 @@ -161,6 +162,12 @@ def execute(arguments): version_description[2] = 0 elif input1 == "3": version_description[2] += 1 + elif input1 == "4": + debug.info("No release for this repository") + continue + else: + debug.warning("An error occured for this repository") + continue debug.info("new version: " + str(version_description)) commands.merge_branch_on_master(git_repo_path, "develop")