Merge pull request #41975 from ClickHouse/release-help-string

Add a warning message to release.py script, require release type
This commit is contained in:
Alexey Milovidov 2022-10-01 18:10:51 +03:00 committed by GitHub
commit 3ab0ce9d15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(