Skip to content

Add script that helps with preparing a library for release#1255

Draft
azeey wants to merge 1 commit intogazebo-tooling:masterfrom
azeey:prepare_for_release
Draft

Add script that helps with preparing a library for release#1255
azeey wants to merge 1 commit intogazebo-tooling:masterfrom
azeey:prepare_for_release

Conversation

@azeey
Copy link
Contributor

@azeey azeey commented Jan 30, 2025

  • Bumps the version CMakeLists
  • Bumps the version package.xml if present
  • Updates the changelog file

- Bumps the version CMakeLists
- Bumps the version package.xml if present
- Updates the changelog file

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>

new_version = [int(v) for v in previous_version.split(".")]
if bump == "major":
new_version[0] += 1
Copy link
Contributor

Choose a reason for hiding this comment

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

I think that when bumping the major version we also need to set minor and patch to 0. Same when bumping the minor version, we need to set patch to 0.

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.

2 participants