Skip to content

Calculate version using 'first-parent' only for release branches. For PRs calculate on latest released version.#11385

Open
AlexeyKuznetsov-DD wants to merge 1 commit into
masterfrom
alexeyk/version-plugin-minor-tweak
Open

Calculate version using 'first-parent' only for release branches. For PRs calculate on latest released version.#11385
AlexeyKuznetsov-DD wants to merge 1 commit into
masterfrom
alexeyk/version-plugin-minor-tweak

Conversation

@AlexeyKuznetsov-DD
Copy link
Copy Markdown
Contributor

What Does This Do

Makes the --first-parent flag in git describe conditional in the tracer-version Gradle plugin. The flag is applied only when the current branch starts with release/v.

For PR branches, the version is now calculated from the latest available release. This addresses cases where long-lived PRs may have originally branched from an older release (for example, 1.57.0) and later received merges from newer releases up to 1.62.0.

Motivation

Ensure correct version generation for long-lived PRs.

Additional Notes

  • No changes to versioning behavior on release branches.

@AlexeyKuznetsov-DD AlexeyKuznetsov-DD requested a review from bric3 May 15, 2026 21:35
@AlexeyKuznetsov-DD AlexeyKuznetsov-DD self-assigned this May 15, 2026
@AlexeyKuznetsov-DD AlexeyKuznetsov-DD added tag: no release notes Changes to exclude from release notes type: refactoring comp: tooling Build & Tooling labels May 15, 2026
@AlexeyKuznetsov-DD AlexeyKuznetsov-DD marked this pull request as ready for review May 15, 2026 21:35
@AlexeyKuznetsov-DD AlexeyKuznetsov-DD requested a review from a team as a code owner May 15, 2026 21:35
@AlexeyKuznetsov-DD AlexeyKuznetsov-DD requested a review from dougqh May 15, 2026 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: tooling Build & Tooling tag: no release notes Changes to exclude from release notes type: refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants