-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
How to Ignore a Project Number in the Repo/Branch Name? #1500
Comments
At a first glance this sounds related to the regex used to dissect the branch name. See #1410 (different context, but maybe somewhat related regarding the root cause) |
We have a similar problem. If a branch is named |
after migrating to 4.0.0 my version jumped from 1.x somewhat to 20.1.0 Log says:
how should i ignore such branch names? I only want to rely on tags... |
I believe there are a couple open PR's (this being one of them: #1507 (comment)) that will help with this. In the meantime, you would be able to exclude the commit that this message is included on in order to return to what you had before. |
That's what we're doing now (excluding commits before a specific date) but yeah, this does not protect us from someone creating such branch and suddenly messing up the build version number (gets worse if it gets merged into develop). Guess there's nothing more to do but wait for the PR to get accepted and a new version of GitVersion coming out. |
If you are willing, you could take the code from the PR branch and test it out in your scenario to make sure that it is working as expected. |
Sure. I'll let you know when I have some time to give it a try. |
We are also trying to integrate GitVersion into our build process and it is very common for developers to create branches with numbers. We would prefer that only tags are used to interpret version number. |
@derhally Seems they are working on it, see here and here :). @gep13 Sorry I never got back to you, it just slipped my mind. But I guess this has been taken care of, so now we just have to wait for new release. |
This should be fixed by #1541. |
We have a project numbering system that was used when creating the repo name:
i.e. 1507.03-MY-PROJECT
We're attempting to add GitVersion into our CI process to automate versioning.
Currently, GitVersion says the version is v1507.04.0...
If we pushed a release tag for the master branch, which properly set it to 1.9.0, but any changes since that commit have yielded the v1507.04.0. Is there any configuration that can be used to tell GitVersion to ignore the branch name and fall back to the highest numbered release tag?
The text was updated successfully, but these errors were encountered: