happygears/Git Tag Based Build Version

Generates build version based on git tag, number of commits from the tag and branch name.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
Runtime
Deprecated runtime

no inputs

namedescription
versionShort Version Example: 1.0.1
is_release_branchIs a release branch
is_development_branchIs the development branch
is_feature_branch_or_prIs a feature branch or pull request
long_versionVersion with commit count and branch name Example: 1.0.1-123-abcd-feature-NET-1522 Where: - 1.0.1 - recent git tag - 123 - number of commits made after the tag was set - abcd - Short commit ID - feature-NET-1522 - name of the git branch "feature/NET-1522"
git_branchGit branch
git_branch_safeGit branch with "/" replaced with "-"
git_commitGit commit ID
git_tagGit tag
git_commits_since_tagNumber of commits since the tag's commit ID
git_describeGet describe output
git_describe_object_idThe git describe object ID. This is a short version of the commit. The length is the minimum needed to make the entire `git_describe` string unique.