From 45cde6545daaf659739df2dd93d4063ee6519d49 Mon Sep 17 00:00:00 2001 From: "Mikhail f. Shiryaev" Date: Fri, 30 Sep 2022 16:21:30 +0200 Subject: [PATCH] Add a warning message to release.py script, require release type --- tests/ci/release.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/ci/release.py b/tests/ci/release.py index b5a4c5d5c9e..c0c248aa513 100755 --- a/tests/ci/release.py +++ b/tests/ci/release.py @@ -444,7 +444,8 @@ def parse_args() -> argparse.Namespace: parser = argparse.ArgumentParser( formatter_class=argparse.ArgumentDefaultsHelpFormatter, description="Script to release a new ClickHouse version, requires `git` and " - "`gh` (github-cli) commands", + "`gh` (github-cli) commands " + "!!! LAUNCH IT ONLY FROM THE MASTER BRANCH !!!", ) parser.add_argument( @@ -468,10 +469,11 @@ def parse_args() -> argparse.Namespace: ) parser.add_argument( "--type", - default="minor", + required=True, choices=Release.BIG + Release.SMALL, dest="release_type", - help="a release type, new branch is created only for 'major' and 'minor'", + help="a release type to bump the major.minor.patch version part, " + "new branch is created only for 'major' and 'minor'", ) parser.add_argument("--with-release-branch", default=True, help=argparse.SUPPRESS) parser.add_argument(