ConventionalCommit class final

A commit message in the Conventional Commits format: type(scope)!: description.

Constructors

ConventionalCommit({required String hash, required String type, required String description, String? scope, bool breaking = false})
const

Properties

breaking → bool
final
bump → Bump
The bump this commit asks for: breaking changes are major, features minor, and fixes, performance changes, and reverts patch.
no setter
changelogLine → String
The changelog line, such as - Feat: Add dpk exec.
no setter
description → String
final
hash → String
final
hashCode → int
The hash code for this object.
no setterinherited
isNotable → bool
Whether the commit belongs in a changelog.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scope → String?
final
type → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

parse(String hash, String subject, String body) → ConventionalCommit?
Parses a commit, or returns null when its subject does not follow the format.