GitOps.Commit (Git Ops v2.7.0)

View Source

Manages the structure, parsing, and formatting of commits.

Using parse/1 you can parse a commit struct out of a commit message

Using format/1 you can format a commit struct in the way that the changelog expects.

Summary

Types

t()

@type t() :: %GitOps.Commit{
  body: term(),
  breaking?: term(),
  footer: term(),
  message: term(),
  scope: term(),
  type: term()
}

Functions

breaking?(commit)

feature?(commit)

fix?(commit)

format(commit)

parse(text)