Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--COMMIT_GUIDELINES.md1
-rw-r--r--scripts/commitMessage/CommitMessage.py2
-rwxr-xr-xscripts/generateChangelog.py2
3 files changed, 4 insertions, 1 deletions
diff --git a/COMMIT_GUIDELINES.md b/COMMIT_GUIDELINES.md
index 3f19780dc..755013f46 100644
--- a/COMMIT_GUIDELINES.md
+++ b/COMMIT_GUIDELINES.md
@@ -52,6 +52,7 @@ The `TYPE` is one of the following:
| BUILD | Changes related to the build process / buildsystem | Fix cmake script |
| TRANSLATION | Translation updates and changes | Update translation files |
| CHANGE | Something was changed without falling into existing categories | Changed the default of a setting |
+| REVERT | A previous commit had to be reverted because e.g. it was buggy | - |
The `TYPE` has to be in **all-uppercase** in order for it to stand out.
diff --git a/scripts/commitMessage/CommitMessage.py b/scripts/commitMessage/CommitMessage.py
index 461b49b90..c0fd14a96 100644
--- a/scripts/commitMessage/CommitMessage.py
+++ b/scripts/commitMessage/CommitMessage.py
@@ -11,7 +11,7 @@ class CommitFormatError(Exception):
Exception(msg)
class CommitMessage:
- knownTypes = ["BREAK", "FEAT", "FIX", "FORMAT", "DOCS", "TEST", "MAINT", "CI", "REFAC", "BUILD", "TRANSLATION", "CHANGE"]
+ knownTypes = ["BREAK", "FEAT", "FIX", "FORMAT", "DOCS", "TEST", "MAINT", "CI", "REFAC", "BUILD", "TRANSLATION", "CHANGE", "REVERT"]
def __init__(self, commitString):
lines = commitString.strip().split("\n")
diff --git a/scripts/generateChangelog.py b/scripts/generateChangelog.py
index b26c971d9..2bcaa13f4 100755
--- a/scripts/generateChangelog.py
+++ b/scripts/generateChangelog.py
@@ -94,6 +94,8 @@ def main():
prefix = "Fixed: "
elif "CHANGE" in commit.m_types:
prefix = "Changed: "
+ elif "REVERT" in commit.m_types:
+ prefix = "Reverted: "
else:
prefix = "Unknown: "