conventional_commit 0.1.0+2

Dart native js
Flutter Android iOS web

Parse a conventional Git commit message.

Conventional Commit #

Parse a conventional Git commit message.

String message = 'feat(awesome_package): new feature added';
ConventionalCommit commit = ConventionalCommit.fromCommitMessage(message);

print(commit.header); // feat(awesome_package): new feature added
print(commit.scopes); // ['awesome_package']
print(commit.type); // feat
print(commit.isBreakingChange); // false
print(commit.isMergeCommit); // false
print(commit.subject); // new feature added
print(commit.isVersionableCommit); // true
print(commit.semverReleaseType); // SemverReleaseType.minor

Valid commit types can be one of the following:

  • build
  • chore
  • ci
  • docs
  • feat
  • fix
  • bug
  • perf
  • refactor
  • revert
  • style
  • test
0
likes
90
pub points
48%
popularity

Publisher

invertase.io

Parse a conventional Git commit message.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache 2.0 (LICENSE)

More

Packages that depend on conventional_commit