Currently, the script only supports semantic versioning tags in the following formats:
1.2.2-alpha
1.2.2-alpha.3
1.2.2-alpha.beta
v2.3.4-beta
For monorepos, it is important to support scoped tags that include a prefix (e.g. firmware/v1.0.1) so that each subproject can manage its versions independently.
Enhancements Required
Add support for custom tag prefixes
Improve command-line argument parsing
Checklist
Currently, the script only supports semantic versioning tags in the following formats:
1.2.2-alpha1.2.2-alpha.31.2.2-alpha.betav2.3.4-betaFor monorepos, it is important to support scoped tags that include a prefix (e.g.
firmware/v1.0.1) so that each subproject can manage its versions independently.Enhancements Required
Add support for custom tag prefixes
Allow the script to filter tags based on a given prefix (e.g.
firmware/).Ensure the versioning logic still validates semantic versioning after stripping the prefix.
Accept tag formats like:
firmware/v1.0.0backend/1.2.2-alphafrontend/v2.3.4-betaImprove command-line argument parsing
Replace
sys.argvwith a robust CLI parser such asargparse.Allow the user to specify:
--prefix firmware/)Checklist