microsoft / beachball

The Sunniest Semantic Version Bumper
https://microsoft.github.io/beachball
MIT License
718 stars 85 forks source link

Feature request to add support for semver metadata #435

Open awentzel opened 3 years ago

awentzel commented 3 years ago

I could be missing it in the documentation, but it would be great to support metadata from semver 2.0.

I know beachball now supports --tag and it would also be great to support --meta or --meta-data with the supported argument of regex expression or formatted for example to support +yyyymmdd. My goal would be for beachball to automatically handle bumping for this formatted version x.y.z-tag+meta where my meta is formatted as yyyymmdd. So this may become 1.0.0-next+20201027 following Semver precedence.

Beachballs' semver.inc is the file that would include the + to include the semver metadata and if it at minimal supported the yyyymmdd format and possibly later other string formats that would be idea. For Canary, that information can be found https://github.com/microsoft/beachball/blob/master/src/commands/canary.ts to include the option to specify the metadata. Once that's done we'd probably want to set the dist-tag "dev".

EisenbergEffect commented 3 years ago

The Microsoft FAST team is blocked on updating to a modern continuous release process due to this missing capability. Can someone from the beachball team respond to indicate whether this is being worked on? If not, our team is willing to contribute. We would appreciate some guidance and maybe a direction as to where in the codebase we should add the code to support this. Thanks!