-
Notifications
You must be signed in to change notification settings - Fork 651
How to override version strategy computation #1419
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
Comments
Found a way by ignoring the commits related to that. |
@Bhaal22 what was the configuration to ignore a specific commit? I do think it would be good to have a way to turn this function off, given there is a TODO in the code to make it configurable. |
here is wha I did: Generate an empty configuration file:
and in the generated GitVersion.yml branches: {}
ignore:
sha:
- 921478254e0c1c0c03d4b727089a1ad7b0a6fc9d
- ec50b5fa59cbc97ae4ce7582ffd808cfdab560a0
- 1bf3d3db32fb7217a7292b9bc53196e2eed83736
- 5dc711c6637d54cae35bd6eef6f17e26441f6376 Those SHAs are my merged commits. |
@Bhaal22 Ahh very nice. Thank you! |
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions. |
Hi,
First, I want to say we are definitely in a bad state regarding semver.
We have a library which was is submodule of our global product. We never wanted to ship the library as a single component to external teams. So we tagged / branched the library repository with the version of the global product.
That's why we have such a log while running gitversion
You can see at the end thatt we have merge commits.
Since I would not like to tag all my commits, I would like to know if there is a way to run only the TaggedCommitVersionStrategy and not use old commits to make version computations.
Our global product is now in 12.x I would not like to make my library pass to v12.x just to be upper than the computed version.
Is there a way maybe to use the more recent commit in this history to be considered as the last version to use as a base to compute next versions?
Thank you.
The text was updated successfully, but these errors were encountered: