Skip to content

Pull Request Version Calculation Based on source branch #2818

Answered by HHobeck
anderson-dev asked this question in Q&A
Discussion options

You must be logged in to vote

It knows that it is a merge coming from a feature branch:
HEAD is merge commit, this is likely a pull request using feature/...

Hi Vinicius.

I'm actually not sure if this scenario can be realized at all. If you take a look on the branch history then git version cannot determine where the merge is coming from:

Thus if you have such a process with PR you need to think of either changing your workflow or changing the release branch strategy:

  • you can ship the artefacts from a previous build e.g. PR build or develop build
  • you can use bump messages in commits or in the merge commit message
  • you can create a tag on main branch

Please see following links:

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@anderson-dev
Comment options

@anderson-dev
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@HHobeck
Comment options

Answer selected by HHobeck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants