From 00d30f72ecb0f44a39c775ab79f0c5cb7c8b26aa Mon Sep 17 00:00:00 2001
From: Jeffrey Phillips Freeman <jeffrey.freeman@syncleus.com>
Date: Thu, 30 Jan 2020 18:11:06 +0100
Subject: [PATCH] Git: Made repo commitizen friendly

---
 .cz-config.js | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
 .cz.json      |  1 +
 2 files changed, 50 insertions(+)
 create mode 100644 .cz-config.js
 create mode 100644 .cz.json

diff --git a/.cz-config.js b/.cz-config.js
new file mode 100644
index 0000000..120a1d4
--- /dev/null
+++ b/.cz-config.js
@@ -0,0 +1,49 @@
+'use strict';
+
+module.exports = {
+
+  types: [
+    {value: 'Feat',     name: 'feat:     A new feature'},
+    {value: 'Git',      name: 'git:      changes to Git files'},
+    {value: 'Fix',      name: 'fix:      A bug fix'},
+    {value: 'Docs',     name: 'docs:     Documentation only changes'},
+    {value: 'Style',    name: 'style:    Changes that do not affect the meaning of the code\n            (white-space, formatting, etc)'},
+    {value: 'Refactor', name: 'refactor: A code change that neither fixes a bug nor adds a feature'},
+    {value: 'Perf',     name: 'perf:     A code change that improves performance'},
+    {value: 'Test',     name: 'test:     Adding missing tests or correcting existing tests'},
+    {value: 'Build',    name: 'build:    Changes that affect the build system or external dependencies (example scopes: maven, gradle, npm, gulp)'},
+    {value: 'CI',       name: 'ci:       Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)'},
+    {value: 'Chore',    name: 'chore:    Other changes that dont modify src or test files'},
+    {value: 'Revert',   name: 'revert:   Reverts a previous commit'}
+  ],
+
+  scopes: [
+    {name: 'other'}
+  ],
+
+  scopeOverrides: {
+    build: [
+      {name: 'dependencies'},
+      {name: 'versioning'},
+      {name: 'release'},
+      {name: 'build plugin'}
+    ],
+    ci: [
+      {name: 'script'}
+    ],
+    chore: [
+      {name: 'commitizen'},
+      {name: 'editorconfig'},
+      {name: 'git'}
+    ],
+    docs: [
+      {name: 'API docs'},
+      {name: 'repo'},
+      {name: 'maven'}
+    ]
+  },
+
+  allowCustomScopes: true,
+  allowBreakingChanges: ['feat', 'fix', 'docs', 'style', 'refactor', 'perf', 'test', 'build', 'ci', 'chore', 'revert']
+
+};
diff --git a/.cz.json b/.cz.json
new file mode 100644
index 0000000..d4856e0
--- /dev/null
+++ b/.cz.json
@@ -0,0 +1 @@
+{ "path": "cz-customizable" }
-- 
GitLab