Replies: 1 comment
-
We are discussing similar use of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm implementing some more advanced versioning reasoning in a build for pull requests. I want to know the version in the PR, and the version in the PR target branch.
Example: in Jenkins, I can have
CHANGE_TARGET=master
, while the actual code is checked out on the PR merge branchPR-1234
. I'd like GitVersion to calculate version for themaster
HEAD as well as thePR-1234
HEAD.What is the best/right way to do this? Are there missing features that would make this easier? I came across #3954 which suggests that I can't just temporarily override
GIT_BRANCH
.I could probably just check out said branch and re-run GitVersion, but that's going to yield a lot of expensive churn in the repo. I am curious if there's a less brute-force approach.
Thanks for assistance!
Beta Was this translation helpful? Give feedback.
All reactions