jgitver / jgitver/jgitver

CalVer: pattern mode support for formatted commit time

Open
#124 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
189
Forks
42
PR merge metrics
No merged PRs in 30d

Description

As we discuss using this plugin many are asking if CalVer can be an option. There are a few ways this could be interpreted. One is to allow any timestamp to be requested in a specific format:

`${HEAD_COMMIT_DATETIME:yyMMdd}`

I personally don't think of this as CalVer (all cal, no ver) - but it _is_ using the date in the version so meets the entry requirements and it is a useful adornment to the version for frequent build/deploy pipelines!

https://calver.org/
https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html#patterns

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.