Skip to content

Commit

Permalink
chore(x.py): improve style of commit message for release (#2410)
Browse files Browse the repository at this point in the history
  • Loading branch information
PragmaTwice authored Jul 14, 2024
1 parent bfde458 commit 6473d6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pr-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
revert
style
test
release
# Configure which scopes are allowed (newline-delimited).
# These are regex patterns auto-wrapped in `^ $`.
scopes: |
Expand Down
6 changes: 3 additions & 3 deletions x.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,11 @@ def package_source(release_version: str, release_candidate_number: Optional[int]

# 1. Git commit and tag
git = find_command('git', msg='git is required for source packaging')
run(git, 'commit', '-a', '-m', f'[source-release] prepare release apache-kvrocks-{version}')
run(git, 'commit', '-a', '-m', f'release: prepare source release apache-kvrocks-{version}')
if release_candidate_number is None:
run(git, 'tag', '-a', f'v{version}', '-m', f'[source-release] copy for tag v{version}')
run(git, 'tag', '-a', f'v{version}', '-m', f'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}-rc{release_candidate_number}')
run(git, 'tag', '-a', f'v{version}-rc{release_candidate_number}', '-m', f'release: copy for tag v{version}-rc{release_candidate_number}')

# 2. Create the source tarball
folder = f'apache-kvrocks-{version}-src'
Expand Down

0 comments on commit 6473d6c

Please sign in to comment.