axion-release-plugin icon indicating copy to clipboard operation
axion-release-plugin copied to clipboard

Base versionIncrementer type on commit message content?

Open richardlund opened this issue 5 years ago • 3 comments

Hi,

I'm looking to use this plugin for a project and am considering using the content of commit messages to drive logic to decide which versionIncrementer to use. e.g. Commit message contains [BUG FIX] then use 'incrementPatch' etc. However, I thought that perhaps this might have been considered already by other folk. Are you aware of anything that might meet these requirements? Thanks in advance.

richardlund avatar Dec 24 '19 12:12 richardlund

I'm guessing that you don't have any advice regarding my question?

richardlund avatar Jan 13 '20 16:01 richardlund

Hi, sorry i didn't reply earlier. We did consider similar behavior based on merged branches names.

This is not currently possible, but I think adding this kind of logic would not be too hard by extending ScmPosition object to contain all commit messages. Commit traversal to the latest tag is done anyway, so this should not be a major change. Would you be willing to code this feature with any necessary help from me?

adamdubiel avatar Jan 13 '20 20:01 adamdubiel

I am looking to get just the HEAD commit message. I plan to put commit trailers in there to indicate if the version in a file should be treated as a tag of the HEAD commit for version calculation purposes.

gabrieljones avatar Sep 24 '21 17:09 gabrieljones