Changex.SubjectSplitter

This module is used to split the subject of a commit message based on a format passed in.

Summary

get_parts(subject, format)

Split the subject based on the format

Functions

get_parts(subject, format)

Split the subject based on the format.

Examples

iex> subject = "fix(user): ensure email is required"
iex> format = "%{type}(%{scope}): %{description}"
iex> Changex.SubjectSplitter.get_parts(subject, format)
[type: "fix", scope: "user", description: "ensure email is required"]