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
#2179 added support for formatting GitVersion properties, but custom formatting is reserved for the various -format configuration properties and is not supported in tag. Adding a tag-format property may be up for discussion, though.
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs.
I would love to see this feature. We are versioning using the shortsha on our feature branches currently and it would be great if gitversion SemVer could be configured to return 1.2.3 on main and 1.2.3-shortsha on feature.
Looks like if this was supported I would still be getting a PreReleaseNumber tacked on the end. Not sure if there is anyway to format the PreReleaseTag to return just {MajorMinorPatch}-{ShortSha}
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs.
Is your improvement request related to a problem? Please describe.
It would be nice to have a support for {Sha} / {ShortSha} variables inside 'tag' property in GitVersion.yml.
Detailed Description
I'm trying to generate a version which contains a commit hash, but seems like that does not support by GitVersion tool.
Below my configuration and output:
Output:
The text was updated successfully, but these errors were encountered: