Severity of a diff
What kind of version bump would be necessary?
Major
: stuff has been deleted or a type has changedMinor
: stuff has been added and the types still fitPatch
: no API changes, either implementation or documentation changestheMoreSevere : ( Magnitude, Magnitude ) -> Magnitude
Choose maximum severity between the two Magnitude
s
[ Elm.SemanticMagnitude.Minor
, Elm.SemanticMagnitude.Major
, Elm.SemanticMagnitude.Patch
]
|> List.foldl
(\next soFar -> ( soFar, next ) |> Elm.SemanticMagnitude.theMoreSevere)
Elm.SemanticMagnitude.Patch
--> Elm.SemanticMagnitude.Major
name : Magnitude -> String
Lowercase name
"-- This is a "
++ (Elm.SemanticMagnitude.Minor |> Elm.SemanticMagnitude.name |> String.toUpper)
++ " change. --"
--> "-- This is a MINOR change. --"