bump property

Bump get bump

The bump this commit asks for: breaking changes are major, features minor, and fixes, performance changes, and reverts patch.

Implementation

Bump get bump {
  if (breaking) {
    return Bump.major;
  }
  return switch (type) {
    'feat' => Bump.minor,
    'fix' || 'perf' || 'revert' => Bump.patch,
    _ => Bump.none,
  };
}