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
Use case: When explaining to developers as DevOps engineer new proposed versioning scheme based on your project, I often need to mention, that .dev = number of commits since the last commit, which is not self-evident. I would either completeley remove it, or replace with .commit, which would make it self-evident.
I'd like to avoid post-string-replacement (s/.dev/.commit/), thus asking you here.
Dear @mdomke, thank you for the tool!
Please consider allowing more flexible formatting of the output string.
dev
branch name, instead ofdevelop
. Thus, end result is often confusing1.0.0.dev.1-ce117b4b-dev
(using-
instead of+
because Docker tags are not compatible with semver)..dev
=number of commits since the last commit
, which is not self-evident. I would either completeley remove it, or replace with.commit
, which would make it self-evident.I'd like to avoid post-string-replacement (
s/.dev/.commit/
), thus asking you here.Essentially it means a new variable for this line
P.S. This may be solved, with making format itself configurable. As of now, you have hardcoded choice of formats.
date
,date +%Y%m%d-%H:%M:%S
,git-semver -format '%X.%Y.%Z-dev.%N+%S'
. (%S - SHA)Such method would also allow other functionality to be easily added, e.g.
%B
, while preserving default format intactThe text was updated successfully, but these errors were encountered: