-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support specify release candidate number #1419
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if it doesn't has a rc number?
@mapleFU Thanks for reminding! Have fixed it. |
x.py
Outdated
@@ -216,16 +216,18 @@ def write_version(release_version: str) -> str: | |||
return version | |||
|
|||
|
|||
def package_source(release_version: str) -> None: | |||
def package_source(release_version: str, release_candidate_number: int) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be an optional ( https://docs.python.org/3/library/typing.html#typing.Optional ) ?
x.py
Outdated
if release_candidate_number == None: | ||
run(git, 'tag', '-a', f'v{version}', '-m', f'[source-release] copy for tag v{version}') | ||
else: | ||
run(git, 'tag', '-a', f'v{version}-rc{release_candidate_number}', '-m', f'[source-release] copy for tag v{version}') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f'[source-release] copy for tag v{version}-rc{release_candidate_number}'
?
Rest LGTM |
The release manual should be updated later also - https://github.com/apache/incubator-kvrocks-website/blob/f2ecdd3743fbbeddbbe293ced5fd49d6d74a0626/community/create-a-release.md?plain=1#L173 |
Thanks @ZENOTME , merging... |
This PR closes #1407
it's to support specify like
./x.py package source -v 2.3.2 -rc 1
and then create a tag '2.3.2-rc1'.