-
Notifications
You must be signed in to change notification settings - Fork 652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Improvement] Increment version as per source branch #3689
Comments
May I ask you to create an integration test for this scenario? [Test]
public void __Just_A_Test__()
{
var configuration = GitFlowConfigurationBuilder.New.Build();
using EmptyRepositoryFixture fixture = new("main");
fixture.MakeACommit();
// ✔️ succeeded as expected
fixture.AssertFullSemver("0.0.1-1", configuration);
or
// ❌ expected 0.1.0-1
fixture.AssertFullSemver("0.0.1-1", configuration);
} |
@HHobeck |
I'm not sure if I understood your question correct. But integration tests can be executed as part of a unit test framework. It is good for communication and to ensure that the requestor and the implementer have the same understanding about the problem. In advance integration tests can be used to ensure the feature as part as an automated build process. See src\GitVersion.Core.Tests\IntegrationTests\ on main branch. |
As described in #3815, I try to configure GitVersion to follow the GitFlow strategy with as little human versioning as possible. According to the GitVersion documentation, the hotfix branches must be named with the desired version for the main branch after merge (e.g. if main is on "1.2.0", the hotfix branch should be named "hotfix/12.1").
|
To get this behaviour you can use the TrunkBased version strategy as a workaround which will be applied in 6.x. |
🎉 This issue has been resolved in version 6.0.0-rc.1 🎉 Your GitReleaseManager bot 📦🚀 |
mode: ContinuousDelivery
assembly-versioning-scheme: MajorMinorPatch
assembly-file-versioning-scheme: MajorMinorPatch
tag-prefix: '[vV]'
continuous-delivery-fallback-tag: ci
major-version-bump-message: '+semver:\s?(breaking|major)'
minor-version-bump-message: '+semver:\s?(feature|minor|feat|enh|enhance|update)'
patch-version-bump-message: '+semver:\s?(fix|patch|hotfix|bugfix|quickfix)'
no-bump-message: '+semver:\s?(none|skip)'
legacy-semver-padding: 4
build-metadata-padding: 4
commits-since-version-source-padding: 4
tag-pre-release-weight: 60000
commit-message-incrementing: Enabled
branches:
develop:
regex: ^dev?[/-]
mode: ContinuousDeployment
tag: ""
increment: Minor
prevent-increment-of-merged-branch-version: false
track-merge-target: true
source-branches: []
tracks-release-branches: true
is-release-branch: false
is-mainline: false
pre-release-weight: 0
hotfix:
regex: ^fix|hotfix|quickfix|bugfix?[/-]
mode: ContinuousDelivery
tag: beta
increment: Patch
prevent-increment-of-merged-branch-version: false
track-merge-target: true
source-branches: ['develop']
tracks-release-branches: false
is-release-branch: false
is-mainline: false
pre-release-weight: 30000
release:
regex: ^release?[/-]
mode: ContinuousDelivery
tag: ''
increment: Major
prevent-increment-of-merged-branch-version: true
track-merge-target: false
source-branches: []
tracks-release-branches: false
is-release-branch: true
is-mainline: false
pre-release-weight: 30000
ignore:
sha: []
increment: Minor
merge-message-formats: {}
update-build-number: true
====================================================================================================
The text was updated successfully, but these errors were encountered: