Skip to content

Commit

Permalink
OPS: Add mkver configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
cortadocodes committed Sep 15, 2022
1 parent fa24cb7 commit 23838ec
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions mkver.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
tagPrefix: ""
defaults {
tag: false
tagMessageFormat: "Release/{Tag}"
preReleaseFormat: "RC{PreReleaseNumber}"
buildMetaDataFormat: "{Branch}.{ShortHash}"
includeBuildMetaData: false
whenNoValidCommitMessages: IncrementPatch
patches: [setup.py]
}

patches: [
{
name: setup.py
filePatterns: ["setup.py"]
replacements: [
{
find: "version=\"{VersionRegex}\""
replace: "version=\"{Version}\""
}
]
}
]

commitMessageActions: [
# Disable major version increments while package is still in beta (i.e. keep the version below 1.0.0).
{
pattern: "BREAKING CHANGE"
action: IncrementMinor
}
{
pattern: "BREAKING-CHANGE"
action: IncrementMinor
}

# All new features require a minor version increase.
{
pattern: "FEA:"
action: IncrementMinor
}
]

0 comments on commit 23838ec

Please sign in to comment.