Skip to content

Releases

v0.1.4

Choose a tag to compare

@sitnikovik sitnikovik released this 04 Oct 09:51
d81e588

Added

  • Kind type defines commit kind, for example, merge, revert, e.t.c
  • KindDefault const represents common commit kind
  • Kind.Default() predicate to define whether the kind is default
  • Commit.Kind() returns commit kind set on its creation
  • Add functional option WithKind() to configure the Commit on its creation
  • KindMerge const represents merge commit kind
  • Kind.Merge() predicate to define whether the kind is merge
  • Test case with KindMerge for Commit.Kind()
  • KindRevert const represents revert commit
  • Kind.Revert() predicate to define whether the kind is revert
  • Test case with KindRevert for Commit.Kind()

Changed

  • Added variadic functional options to NewCommit()

Related Issue

v0.1.3

Choose a tag to compare

@sitnikovik sitnikovik released this 22 Aug 17:57
a29b3aa
  • Added raw field for Message
  • Parse Ticket from raw data instead of Subject
  • Refactored String(), ParseMessage() to work with raw if set
  • Keep body on single newline and extract ticket from single-line message

v0.1.2

Choose a tag to compare

@sitnikovik sitnikovik released this 22 Aug 12:53
8d34f41

Fixed type parsing on the provided strings with ticket identifier

v0.1.1

Choose a tag to compare

@sitnikovik sitnikovik released this 20 Aug 03:54
86c387e

Added getters for subject: Type(), Scope(), Description()

v0.1.0

Choose a tag to compare

@sitnikovik sitnikovik released this 08 Feb 06:24
a537bbb
feat(commit): parse ticket from subject and message (#41)

- Added `Ticket()` parses ticket from the commit subject
- Added `Ticket()` parses ticket from the commit message