feature: add branch types, commit types, support for breaking changes
This commit is contained in:
@@ -1,15 +1,6 @@
|
||||
GitFlowError = ValueError
|
||||
|
||||
BRANCH_TYPES = [
|
||||
"feature",
|
||||
"refactor",
|
||||
"bugfix",
|
||||
"hotfix",
|
||||
"chore",
|
||||
"docs",
|
||||
]
|
||||
|
||||
COMMIT_TYPES = [
|
||||
"feature",
|
||||
"bugfix",
|
||||
"hotfix",
|
||||
@@ -18,6 +9,24 @@ COMMIT_TYPES = [
|
||||
"docs",
|
||||
"style",
|
||||
"test",
|
||||
"build",
|
||||
"ci",
|
||||
"chore",
|
||||
]
|
||||
|
||||
COMMIT_TYPES = [
|
||||
"feature",
|
||||
"bugfix",
|
||||
"hotfix",
|
||||
"refactor",
|
||||
"perf",
|
||||
"revert",
|
||||
"docs",
|
||||
"style",
|
||||
"test",
|
||||
"build",
|
||||
"ci",
|
||||
"chore",
|
||||
"wip",
|
||||
]
|
||||
|
||||
@@ -32,15 +41,25 @@ SEMVER_PATCH = 1
|
||||
# Commits con estos tipos no alteran la versión
|
||||
SEMVER_SKIP = 0
|
||||
|
||||
# Un commit marcado como breaking change (<tipo>!: <mensaje>) incrementa SEMVER_MAJOR sin importar
|
||||
# el tipo. Los tipos que no figuran aquí no alteran la versión.
|
||||
COMMIT_TYPE_INCREMENT = {
|
||||
"feature": SEMVER_MINOR,
|
||||
"bugfix": SEMVER_PATCH,
|
||||
"hotfix": SEMVER_PATCH,
|
||||
"refactor": SEMVER_PATCH,
|
||||
"perf": SEMVER_PATCH,
|
||||
"revert": SEMVER_PATCH,
|
||||
"docs": SEMVER_SKIP,
|
||||
"style": SEMVER_SKIP,
|
||||
"test": SEMVER_SKIP,
|
||||
"build": SEMVER_SKIP,
|
||||
"ci": SEMVER_SKIP,
|
||||
"chore": SEMVER_SKIP,
|
||||
"wip": SEMVER_SKIP,
|
||||
# Alias de Conventional Commits, para commits creados fuera de git-flow
|
||||
"feat": SEMVER_MINOR,
|
||||
"fix": SEMVER_PATCH,
|
||||
}
|
||||
|
||||
SUPPORTED_REMOTE_URL_SCHEMAS = [
|
||||
|
||||
Reference in New Issue
Block a user