Skip to content

ci(bump-version-pr): support custom base version and target branch#12533

Open
mitsudome-r wants to merge 2 commits intoautowarefoundation:mainfrom
mitsudome-r:update-bump-version-pr
Open

ci(bump-version-pr): support custom base version and target branch#12533
mitsudome-r wants to merge 2 commits intoautowarefoundation:mainfrom
mitsudome-r:update-bump-version-pr

Conversation

@mitsudome-r
Copy link
Copy Markdown
Member

Description

Summary

Current bump-version-pr workflow fails when there are packages with different versions described in package.xml versions(example). This reworks the bump-version-pr workflow so it can bump from any specified base version, target any branch, and produces a clean single-commit PR with a more informative description.

Changes

New workflow_dispatch inputs

  • base_version — git tag to bump from. Defaults to the latest semantic version tag (MAJOR.MINOR.PATCH) found in the repo.
  • target_branch — branch to open the PR against. Defaults to main.

The previous behavior was hardcoded to check out the humble branch and target main. Both are now configurable.

Auto-align diverged packages before catkin_prepare_release

Packages whose <version> in package.xml does not match base_version would otherwise cause catkin_generate_changelog / catkin_prepare_release to fail. The workflow now, in a single pass over all package.xml files:

  • rewrites the <version> to base_version, and
  • deletes the package's sibling CHANGELOG.rst
  • add PR description about deleted CHANGELOG.rst

Related links

Parent Issue:

How was this PR tested?

Tested on my fork:

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp>
@github-actions github-actions Bot added the type:ci Continuous Integration (CI) processes and testing. (auto-assigned) label May 1, 2026
@mitsudome-r mitsudome-r requested a review from sasakisasaki May 1, 2026 16:42
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp>
@mitsudome-r mitsudome-r added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) type:ci Continuous Integration (CI) processes and testing. (auto-assigned)

Projects

Status: To Triage

Development

Successfully merging this pull request may close these issues.

1 participant