You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 branch PR-1234. I'd like GitVersion to calculate version for the master HEAD as well as the PR-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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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