Skip to content

Conversation

@b0lle
Copy link

@b0lle b0lle commented Mar 27, 2025

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes ##2515 🦕

@b0lle b0lle requested review from a team as code owners March 27, 2025 00:28
@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Mar 27, 2025
@google-cla
Copy link

google-cla bot commented Mar 27, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@matthias-busch
Copy link

This is actually a bugfix I need as well!

@KingBain
Copy link

KingBain commented Apr 15, 2025

@chingor13 would like to see this get merged.

@b0lle
Copy link
Author

b0lle commented Sep 30, 2025

@chingor13 would like to see this get merged.

@b0lle
Copy link
Author

b0lle commented Jan 6, 2026

@ferrarimarco do you think you could review this?

@ferrarimarco ferrarimarco self-requested a review January 7, 2026 08:10
Copy link
Collaborator

@ferrarimarco ferrarimarco left a comment

Choose a reason for hiding this comment

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

Thanks for this PR.

A few small things to check.

Comment on lines +11 to +22

# Devenv
.devenv*
devenv.local.nix
devenv.lock
devenv.nix
devenv.yaml
.envrc

# direnv
.direnv

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please revert this change? we don't use devenv.

| `always-bump-major` | Always bump major version |
| `service-pack` | Designed for Java backport fixes. Uses Maven's specification for service pack versions (e.g. 1.2.3-sp.1) |
| `prerelease` | Bumping prerelease number (eg. 1.2.0-beta01 to 1.2.0-beta02) or if prerelease type is set, using that in the prerelease part (eg. 1.2.1 to 1.3.0-beta) |
| `prerelease` | Bumping prerelease number (eg. 1.2.0-beta01 to 1.2.0-beta02) or if prerelease type is set, using that in the prerelease part (eg. 1.2.1 to 1.3.0-beta). Works together with the "prerelease" settings from [manifest-releaser](/docs/manifest-releaser.md) (see for more infos) - a prerelease version number will only be created, if the prerelease setting is set to true (false by default). |
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please refactor to:

A prerelease version number will only be created if the prerelease setting is set to `true`. Default: `false`. For more information, see [Manifest Driven release-please](manifest-releaser.md).

// Works together with the "prerelease" versioning strategy, which creates a
// prerelease-version (like 1.0.0-alpha.1) only if this setting is set to true.
// This allows to create prerelease-versions on conditions (e.g. publish them only
// on release-candidate branches)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please extend this comment to explain the use case that led to this fix, so that other users are aware of how to work with pre-releases when you want to release a non pre-release version?

describe('without prerelease property', () => {
const expectedBumps: Record<string, string> = {
'1.2.3': '2.0.0',
'1.0.0-beta01': '1.0.0',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add a comment explaining why 1.0.0 here? So we don't lose context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants