Liking cljdoc? Tell your friends :D

k16.kmono.version.alg.conventional-commits


match-commitclj

(match-commit commit)
source

version-fnclj

(version-fn package)

A version-fn for k16.kmono.version/inc-package-versions which produces a version-type of [:patch, :minor, :major, nil] according to the convensions of conventional-commits.

  • A commit message with fix: in the title would produce a version-type of :patch.
  • A commit message with feat: in the title would produce a version-type of :minor.
  • The presence of a bang (!) such as fix!: would produce a version-type of :major.

And finally if the commit message body contained the text BREAKING CHANGE: then this would also result in a version-type of :major.

A `version-fn` for [[k16.kmono.version/inc-package-versions]] which produces
a version-type of `[:patch, :minor, :major, nil]` according to the convensions
of conventional-commits.

- A commit message with `fix:` in the title would produce a version-type of
`:patch`.
- A commit message with `feat:` in the title would produce a version-type of
`:minor`.
- The presence of a bang (!) such as `fix!:` would produce a version-type of
`:major`.

And finally if the commit message body contained the text `BREAKING CHANGE:`
then this would also result in a version-type of `:major`.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close