Skip to content
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

Merged
merged 2 commits into from
May 5, 2023
Merged

Conversation

ZENOTME
Copy link
Contributor

@ZENOTME ZENOTME commented May 5, 2023

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'.

Copy link
Member

@mapleFU mapleFU left a 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?

@ZENOTME
Copy link
Contributor Author

ZENOTME commented May 5, 2023

@mapleFU Thanks for reminding! Have fixed it.

@git-hulk git-hulk requested a review from mapleFU May 5, 2023 02:57
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:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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}')
Copy link
Member

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}'

?

@mapleFU
Copy link
Member

mapleFU commented May 5, 2023

Rest LGTM

mapleFU
mapleFU previously approved these changes May 5, 2023
@git-hulk git-hulk requested review from PragmaTwice and tisonkun May 5, 2023 03:44
PragmaTwice
PragmaTwice previously approved these changes May 5, 2023
x.py Outdated Show resolved Hide resolved
@tisonkun tisonkun dismissed stale reviews from PragmaTwice and mapleFU via aa671d3 May 5, 2023 06:28
@tisonkun
Copy link
Member

tisonkun commented May 5, 2023

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

@PragmaTwice
Copy link
Member

Thanks @ZENOTME , merging...

@PragmaTwice PragmaTwice merged commit f4aa7e2 into apache:unstable May 5, 2023
@ZENOTME ZENOTME deleted the rc branch May 5, 2023 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support specify release candidate number in x.py package source
4 participants