benduran / lets-version

A package that reads your conventional commits and git history and recommends (or applies) a SemVer version bump for you
MIT License
1 stars 3 forks source link

Git log format date #23

Closed miguelramos closed 2 months ago

miguelramos commented 2 months ago

Hey @benduran in here: git file you could add the format to the date as git log support for better parsing:

https://git-scm.com/docs/git-log#Documentation/git-log.txt---dateltformatgt

Normally i use --date=rfc2822. What do you think?

benduran commented 2 months ago

Hello again @miguelramos!

Perhaps this field could be user customizable? I can see benefits in allowing, for example, both the rfc2822 and the iso8601 format (or whichever else git supports). Maybe via a --commitDateFormat flag?

benduran commented 2 months ago

@miguelramos checkout this proposed PR, which adds the customizable date format support when parsing the git commits: https://github.com/benduran/lets-version/pull/24

miguelramos commented 2 months ago

Approved. Many thanks.

benduran commented 2 months ago

Thank you! @better-builds/lets-version@1.1.0 has been published, and the PR has been closed. Give it a shot and feel free to reach back out if you have any future feedback 🫡