diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 0000000000..8b22a481ed
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,94 @@
+version: 2.1
+
+commands:
+ update-yarn:
+ steps:
+ - run:
+ name: Update yarn
+ command: yarn global add yarn@latest
+ install:
+ steps:
+ - run:
+ name: Install dependencies
+ command: yarn install --ignore-engines
+ audit:
+ steps:
+ - run:
+ name: Audit dependencies
+ command: yarn audit
+ build:
+ steps:
+ - run:
+ name: Build packages
+ command: yarn build
+ lint:
+ steps:
+ - run:
+ name: Lint project
+ command: yarn lint
+ deps:
+ steps:
+ - run:
+ name: Check dependencies
+ command: yarn deps
+ test:
+ steps:
+ - run:
+ name: Test
+ command: yarn test
+ run-node-6:
+ steps:
+ - checkout
+ - restore_cache:
+ keys:
+ - v1-dependencies-{{ checksum "yarn.lock" }}
+ - install
+ - build
+ - lint
+ - deps
+ - test
+ - save-cache
+ run-node:
+ steps:
+ - checkout
+ - restore_cache:
+ keys:
+ - v1-dependencies-{{ checksum "yarn.lock" }}
+ - update-yarn
+ - install
+ - audit
+ - build
+ - lint
+ - deps
+ - test
+ - save-cache
+ save-cache:
+ steps:
+ - save_cache:
+ key: v{{ .Environment.CIRCLE_CACHE_VERSION }}-{{ arch }}-npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "yarn.lock" }}
+ paths:
+ - node_modules
+
+jobs:
+ node-v6:
+ docker:
+ - image: node:6
+ steps:
+ - run-node-6
+ node-v8:
+ docker:
+ - image: node:8
+ steps:
+ - run-node
+ node-v10:
+ docker:
+ - image: node:10
+ steps:
+ - run-node
+
+workflows:
+ node-multi-build:
+ jobs:
+ - node-v6
+ - node-v8
+ - node-v10
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 4bf7224462..a7a46aec3d 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -40,7 +40,7 @@ To keep the code base of commitlint neat and tidy the following rules apply to e
> Coding standards
-* [Happiness](https://github.com/sindresorhus/xo) enforced
+* `prettier` is king
* Favor micro library over swiss army knives (rimraf, ncp vs. fs-extra)
* Be awesome
@@ -50,7 +50,7 @@ To make your life easier commitlint is commitizen-friendly and provides the npm
> Commit standards
-* [conventional-changelog](https://github.com/marionebl/commitlint/tree/master/%40commitlint/prompt)
+* [conventional-changelog](https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/prompt)
* husky commit message hook available
* present tense
* maximum of 100 characters
diff --git a/.gitignore b/.gitignore
index bf132e0781..e485aaeee4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@ package-lock.json
.*.dockerfile
lib/
package.json.lerna_backup
+/*.iml
diff --git a/.prettierignore b/.prettierignore
new file mode 100644
index 0000000000..c3af857904
--- /dev/null
+++ b/.prettierignore
@@ -0,0 +1 @@
+lib/
diff --git a/.travis.yml b/.travis.yml
index b44dec507c..eaf19a1a81 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,18 +1,8 @@
+os: windows
language: node_js
+cache:
+ yarn
node_js:
- - '10'
- - '8'
- - '6'
-install:
- - npm install -g npx
- - npx yarn install
- - npx lerna bootstrap
- - npm --version
- - yarn --version
- - npx --version
-script:
- - npx yarn build
- - node @commitlint/travis-cli/lib/cli.js
- - npx yarn lint
- - npx yarn deps
- - npx yarn test
+ - lts/*
+before_script:
+ - yarn build
diff --git a/.vscode/settings.json b/.vscode/settings.json
deleted file mode 100644
index abf8296a48..0000000000
--- a/.vscode/settings.json
+++ /dev/null
@@ -1,4 +0,0 @@
-// Place your settings in this file to overwrite default and user settings.
-{
- "xo.enable": true
-}
diff --git a/.yarnrc b/.yarnrc
index 1046ab270a..aeff25b683 100644
--- a/.yarnrc
+++ b/.yarnrc
@@ -1,2 +1,3 @@
workspaces-experimental "true"
registry "https://registry.npmjs.org/"
+--install.ignore-engines true
diff --git a/@alias/commitlint-config-angular/CHANGELOG.md b/@alias/commitlint-config-angular/CHANGELOG.md
index 9820027ba5..d7e7b865f2 100644
--- a/@alias/commitlint-config-angular/CHANGELOG.md
+++ b/@alias/commitlint-config-angular/CHANGELOG.md
@@ -3,8 +3,43 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package commitlint-config-angular
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package commitlint-config-angular
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package commitlint-config-angular
+
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
@@ -12,7 +47,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-angular
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
@@ -20,7 +55,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-angular
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
@@ -28,7 +63,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-angular
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
@@ -36,7 +71,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-angular
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
@@ -44,7 +79,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-angular
-## [5.1.1](https://github.com/marionebl/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
+## [5.1.1](https://github.com/conventional-changelog/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
@@ -52,7 +87,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-angular
-# [5.1.0](https://github.com/marionebl/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
+# [5.1.0](https://github.com/conventional-changelog/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
@@ -60,7 +95,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-angular
-## [5.0.1](https://github.com/marionebl/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
+## [5.0.1](https://github.com/conventional-changelog/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
@@ -68,7 +103,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-angular
-# [4.3.0](https://github.com/marionebl/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
+# [4.3.0](https://github.com/conventional-changelog/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
@@ -76,7 +111,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-angular
-## [4.2.1](https://github.com/marionebl/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
+## [4.2.1](https://github.com/conventional-changelog/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
@@ -84,7 +119,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-angular
-# [4.2.0](https://github.com/marionebl/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
+# [4.2.0](https://github.com/conventional-changelog/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
@@ -113,7 +148,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* alias config packages ([1946baf](https://github.com/marionebl/commitlint/commit/1946baf))
+* alias config packages ([1946baf](https://github.com/conventional-changelog/commitlint/commit/1946baf))
@@ -129,7 +164,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* alias config packages ([1946baf](https://github.com/marionebl/commitlint/commit/1946baf))
+* alias config packages ([1946baf](https://github.com/conventional-changelog/commitlint/commit/1946baf))
@@ -140,7 +175,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* alias config packages ([1946baf](https://github.com/marionebl/commitlint/commit/1946baf))
+* alias config packages ([1946baf](https://github.com/conventional-changelog/commitlint/commit/1946baf))
@@ -151,7 +186,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* alias config packages ([1946baf](https://github.com/marionebl/commitlint/commit/1946baf))
+* alias config packages ([1946baf](https://github.com/conventional-changelog/commitlint/commit/1946baf))
@@ -167,7 +202,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* alias config packages ([67ba5c6](https://github.com/marionebl/commitlint/commit/67ba5c6))
+* alias config packages ([67ba5c6](https://github.com/conventional-changelog/commitlint/commit/67ba5c6))
@@ -178,4 +213,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* alias config packages ([67ba5c6](https://github.com/marionebl/commitlint/commit/67ba5c6))
+* alias config packages ([67ba5c6](https://github.com/conventional-changelog/commitlint/commit/67ba5c6))
diff --git a/@alias/commitlint-config-angular/license.md b/@alias/commitlint-config-angular/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@alias/commitlint-config-angular/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@alias/commitlint-config-angular/package.json b/@alias/commitlint-config-angular/package.json
index 2133dcf3cb..478f6b3e6e 100644
--- a/@alias/commitlint-config-angular/package.json
+++ b/@alias/commitlint-config-angular/package.json
@@ -1,6 +1,6 @@
{
"name": "commitlint-config-angular",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Shareable commitlint config enforcing the angular commit convention",
"files": [
"index.js"
@@ -11,10 +11,9 @@
"deps": "dep-check",
"pkg": "pkg-check"
},
- "xo": false,
"repository": {
"type": "git",
- "url": "git+https://github.com/marionebl/commitlint.git"
+ "url": "git+https://github.com/conventional-changelog/commitlint.git"
},
"keywords": [
"conventional-changelog",
@@ -25,13 +24,13 @@
"author": "Mario Nebl ",
"license": "MIT",
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"dependencies": {
- "@commitlint/config-angular": "^7.0.0"
+ "@commitlint/config-angular": "^7.5.0"
},
"devDependencies": {
- "@commitlint/utils": "^7.0.0"
+ "@commitlint/utils": "^7.5.0"
}
}
diff --git a/@alias/commitlint-config-lerna-scopes/CHANGELOG.md b/@alias/commitlint-config-lerna-scopes/CHANGELOG.md
index c2806367a2..0f6310e9ee 100644
--- a/@alias/commitlint-config-lerna-scopes/CHANGELOG.md
+++ b/@alias/commitlint-config-lerna-scopes/CHANGELOG.md
@@ -3,8 +3,51 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package commitlint-config-lerna-scopes
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package commitlint-config-lerna-scopes
+
+
+## [7.2.1](https://github.com/conventional-changelog/commitlint/compare/v7.2.0...v7.2.1) (2018-10-11)
+
+
+
+
+**Note:** Version bump only for package commitlint-config-lerna-scopes
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package commitlint-config-lerna-scopes
+
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
@@ -12,7 +55,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-lerna-scopes
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
@@ -20,7 +63,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-lerna-scopes
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
@@ -28,7 +71,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-lerna-scopes
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
@@ -36,7 +79,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-lerna-scopes
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
@@ -44,7 +87,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-lerna-scopes
-# [6.0.0](https://github.com/marionebl/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
+# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
@@ -52,7 +95,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-lerna-scopes
-## [5.2.6](https://github.com/marionebl/commitlint/compare/v5.2.5...v5.2.6) (2017-12-21)
+## [5.2.6](https://github.com/conventional-changelog/commitlint/compare/v5.2.5...v5.2.6) (2017-12-21)
@@ -60,7 +103,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-lerna-scopes
-# [5.2.0](https://github.com/marionebl/commitlint/compare/v5.1.3...v5.2.0) (2017-11-30)
+# [5.2.0](https://github.com/conventional-changelog/commitlint/compare/v5.1.3...v5.2.0) (2017-11-30)
@@ -68,7 +111,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-lerna-scopes
-## [5.1.1](https://github.com/marionebl/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
+## [5.1.1](https://github.com/conventional-changelog/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
@@ -76,7 +119,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-lerna-scopes
-# [5.1.0](https://github.com/marionebl/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
+# [5.1.0](https://github.com/conventional-changelog/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
@@ -84,7 +127,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-lerna-scopes
-## [5.0.1](https://github.com/marionebl/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
+## [5.0.1](https://github.com/conventional-changelog/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
@@ -92,7 +135,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-lerna-scopes
-# [4.3.0](https://github.com/marionebl/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
+# [4.3.0](https://github.com/conventional-changelog/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
@@ -100,7 +143,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-lerna-scopes
-## [4.2.1](https://github.com/marionebl/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
+## [4.2.1](https://github.com/conventional-changelog/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
@@ -108,7 +151,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-lerna-scopes
-# [4.2.0](https://github.com/marionebl/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
+# [4.2.0](https://github.com/conventional-changelog/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
@@ -116,7 +159,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-lerna-scopes
-## [4.1.1](https://github.com/marionebl/commitlint/compare/v4.1.0...v4.1.1) (2017-10-09)
+## [4.1.1](https://github.com/conventional-changelog/commitlint/compare/v4.1.0...v4.1.1) (2017-10-09)
@@ -145,7 +188,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* alias config packages ([1946baf](https://github.com/marionebl/commitlint/commit/1946baf))
+* alias config packages ([1946baf](https://github.com/conventional-changelog/commitlint/commit/1946baf))
@@ -161,7 +204,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* alias config packages ([1946baf](https://github.com/marionebl/commitlint/commit/1946baf))
+* alias config packages ([1946baf](https://github.com/conventional-changelog/commitlint/commit/1946baf))
@@ -172,7 +215,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* alias config packages ([1946baf](https://github.com/marionebl/commitlint/commit/1946baf))
+* alias config packages ([1946baf](https://github.com/conventional-changelog/commitlint/commit/1946baf))
@@ -183,7 +226,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* alias config packages ([1946baf](https://github.com/marionebl/commitlint/commit/1946baf))
+* alias config packages ([1946baf](https://github.com/conventional-changelog/commitlint/commit/1946baf))
@@ -199,7 +242,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* alias config packages ([67ba5c6](https://github.com/marionebl/commitlint/commit/67ba5c6))
+* alias config packages ([67ba5c6](https://github.com/conventional-changelog/commitlint/commit/67ba5c6))
@@ -210,4 +253,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* alias config packages ([67ba5c6](https://github.com/marionebl/commitlint/commit/67ba5c6))
+* alias config packages ([67ba5c6](https://github.com/conventional-changelog/commitlint/commit/67ba5c6))
diff --git a/@alias/commitlint-config-lerna-scopes/license.md b/@alias/commitlint-config-lerna-scopes/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@alias/commitlint-config-lerna-scopes/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@alias/commitlint-config-lerna-scopes/package.json b/@alias/commitlint-config-lerna-scopes/package.json
index 050185b82e..baf2674a37 100644
--- a/@alias/commitlint-config-lerna-scopes/package.json
+++ b/@alias/commitlint-config-lerna-scopes/package.json
@@ -1,6 +1,6 @@
{
"name": "commitlint-config-lerna-scopes",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Shareable commitlint config enforcing lerna package names as scopes",
"files": [
"index.js"
@@ -11,10 +11,9 @@
"deps": "dep-check",
"pkg": "pkg-check"
},
- "xo": false,
"repository": {
"type": "git",
- "url": "git+https://github.com/marionebl/commitlint.git"
+ "url": "git+https://github.com/conventional-changelog/commitlint.git"
},
"keywords": [
"conventional-changelog",
@@ -25,13 +24,13 @@
"author": "Mario Nebl ",
"license": "MIT",
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"dependencies": {
- "@commitlint/config-lerna-scopes": "^7.0.0"
+ "@commitlint/config-lerna-scopes": "^7.5.0"
},
"devDependencies": {
- "@commitlint/utils": "^7.0.0"
+ "@commitlint/utils": "^7.5.0"
}
}
diff --git a/@alias/commitlint-config-patternplate/CHANGELOG.md b/@alias/commitlint-config-patternplate/CHANGELOG.md
index 8036810830..33153d9b66 100644
--- a/@alias/commitlint-config-patternplate/CHANGELOG.md
+++ b/@alias/commitlint-config-patternplate/CHANGELOG.md
@@ -3,8 +3,43 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package commitlint-config-patternplate
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package commitlint-config-patternplate
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package commitlint-config-patternplate
+
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
@@ -12,7 +47,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-patternplate
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
@@ -20,7 +55,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-patternplate
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
@@ -28,7 +63,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-patternplate
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
@@ -36,7 +71,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-patternplate
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
@@ -44,7 +79,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-patternplate
-# [6.0.0](https://github.com/marionebl/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
+# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
@@ -52,7 +87,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-patternplate
-## [5.1.1](https://github.com/marionebl/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
+## [5.1.1](https://github.com/conventional-changelog/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
@@ -60,7 +95,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-patternplate
-# [5.1.0](https://github.com/marionebl/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
+# [5.1.0](https://github.com/conventional-changelog/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
@@ -68,7 +103,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-patternplate
-## [5.0.1](https://github.com/marionebl/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
+## [5.0.1](https://github.com/conventional-changelog/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
@@ -76,7 +111,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-patternplate
-# [4.3.0](https://github.com/marionebl/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
+# [4.3.0](https://github.com/conventional-changelog/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
@@ -84,7 +119,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-patternplate
-## [4.2.1](https://github.com/marionebl/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
+## [4.2.1](https://github.com/conventional-changelog/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
@@ -92,7 +127,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint-config-patternplate
-# [4.2.0](https://github.com/marionebl/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
+# [4.2.0](https://github.com/conventional-changelog/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
@@ -121,7 +156,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* alias config packages ([1946baf](https://github.com/marionebl/commitlint/commit/1946baf))
+* alias config packages ([1946baf](https://github.com/conventional-changelog/commitlint/commit/1946baf))
@@ -137,7 +172,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* alias config packages ([1946baf](https://github.com/marionebl/commitlint/commit/1946baf))
+* alias config packages ([1946baf](https://github.com/conventional-changelog/commitlint/commit/1946baf))
@@ -148,7 +183,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* alias config packages ([1946baf](https://github.com/marionebl/commitlint/commit/1946baf))
+* alias config packages ([1946baf](https://github.com/conventional-changelog/commitlint/commit/1946baf))
@@ -159,7 +194,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* alias config packages ([1946baf](https://github.com/marionebl/commitlint/commit/1946baf))
+* alias config packages ([1946baf](https://github.com/conventional-changelog/commitlint/commit/1946baf))
@@ -175,7 +210,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* alias config packages ([67ba5c6](https://github.com/marionebl/commitlint/commit/67ba5c6))
+* alias config packages ([67ba5c6](https://github.com/conventional-changelog/commitlint/commit/67ba5c6))
@@ -186,4 +221,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* alias config packages ([67ba5c6](https://github.com/marionebl/commitlint/commit/67ba5c6))
+* alias config packages ([67ba5c6](https://github.com/conventional-changelog/commitlint/commit/67ba5c6))
diff --git a/@alias/commitlint-config-patternplate/license.md b/@alias/commitlint-config-patternplate/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@alias/commitlint-config-patternplate/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@alias/commitlint-config-patternplate/package.json b/@alias/commitlint-config-patternplate/package.json
index 85c57c8dee..0bc064cd5d 100644
--- a/@alias/commitlint-config-patternplate/package.json
+++ b/@alias/commitlint-config-patternplate/package.json
@@ -1,6 +1,6 @@
{
"name": "commitlint-config-patternplate",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Lint your commits, patternplate-style",
"files": [
"index.js"
@@ -11,10 +11,9 @@
"deps": "dep-check",
"pkg": "pkg-check"
},
- "xo": false,
"repository": {
"type": "git",
- "url": "git+https://github.com/marionebl/commitlint.git"
+ "url": "git+https://github.com/conventional-changelog/commitlint.git"
},
"keywords": [
"conventional-changelog",
@@ -25,11 +24,11 @@
"author": "Mario Nebl ",
"license": "MIT",
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"dependencies": {
- "@commitlint/config-patternplate": "^7.0.0",
- "@commitlint/utils": "^7.0.0"
+ "@commitlint/config-patternplate": "^7.5.0",
+ "@commitlint/utils": "^7.5.0"
}
}
diff --git a/@alias/commitlint/CHANGELOG.md b/@alias/commitlint/CHANGELOG.md
index 7eeaffac68..a814352970 100644
--- a/@alias/commitlint/CHANGELOG.md
+++ b/@alias/commitlint/CHANGELOG.md
@@ -3,8 +3,83 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+
+
+
+
+
+# [7.4.0](https://github.com/conventional-changelog/commitlint/compare/v7.3.2...v7.4.0) (2019-01-27)
+
+
+
+
+**Note:** Version bump only for package commitlint
+
+
+## [7.3.2](https://github.com/conventional-changelog/commitlint/compare/v7.3.1...v7.3.2) (2019-01-15)
+
+
+
+
+**Note:** Version bump only for package commitlint
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package commitlint
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package commitlint
+
+
+## [7.2.1](https://github.com/conventional-changelog/commitlint/compare/v7.2.0...v7.2.1) (2018-10-11)
+
+
+
+
+**Note:** Version bump only for package commitlint
+
+
+# [7.2.0](https://github.com/conventional-changelog/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05)
+
+
+
+
+**Note:** Version bump only for package commitlint
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package commitlint
+
+
+# [7.1.0](https://github.com/conventional-changelog/commitlint/compare/v7.0.1...v7.1.0) (2018-08-29)
+
+
+
+
+**Note:** Version bump only for package commitlint
+
-# [6.2.0](https://github.com/marionebl/commitlint/compare/v6.1.3...v6.2.0) (2018-05-01)
+# [6.2.0](https://github.com/conventional-changelog/commitlint/compare/v6.1.3...v6.2.0) (2018-05-01)
@@ -12,7 +87,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
@@ -20,7 +95,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
@@ -28,7 +103,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint
-## [6.0.5](https://github.com/marionebl/commitlint/compare/v6.0.4...v6.0.5) (2018-01-31)
+## [6.0.5](https://github.com/conventional-changelog/commitlint/compare/v6.0.4...v6.0.5) (2018-01-31)
@@ -36,7 +111,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
@@ -44,7 +119,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
@@ -52,7 +127,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
@@ -60,7 +135,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint
-## [6.0.1](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.1) (2018-01-09)
+## [6.0.1](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.1) (2018-01-09)
@@ -68,7 +143,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint
-# [6.0.0](https://github.com/marionebl/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
+# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
@@ -76,7 +151,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint
-## [5.2.6](https://github.com/marionebl/commitlint/compare/v5.2.5...v5.2.6) (2017-12-21)
+## [5.2.6](https://github.com/conventional-changelog/commitlint/compare/v5.2.5...v5.2.6) (2017-12-21)
@@ -84,7 +159,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint
-## [5.2.5](https://github.com/marionebl/commitlint/compare/v5.2.4...v5.2.5) (2017-12-08)
+## [5.2.5](https://github.com/conventional-changelog/commitlint/compare/v5.2.4...v5.2.5) (2017-12-08)
@@ -92,7 +167,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint
-## [5.2.4](https://github.com/marionebl/commitlint/compare/v5.2.3...v5.2.4) (2017-12-08)
+## [5.2.4](https://github.com/conventional-changelog/commitlint/compare/v5.2.3...v5.2.4) (2017-12-08)
@@ -100,7 +175,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint
-## [5.2.3](https://github.com/marionebl/commitlint/compare/v5.2.2...v5.2.3) (2017-12-05)
+## [5.2.3](https://github.com/conventional-changelog/commitlint/compare/v5.2.2...v5.2.3) (2017-12-05)
@@ -108,7 +183,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint
-# [5.2.0](https://github.com/marionebl/commitlint/compare/v5.1.3...v5.2.0) (2017-11-30)
+# [5.2.0](https://github.com/conventional-changelog/commitlint/compare/v5.1.3...v5.2.0) (2017-11-30)
@@ -116,7 +191,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint
-## [5.1.1](https://github.com/marionebl/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
+## [5.1.1](https://github.com/conventional-changelog/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
@@ -124,7 +199,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint
-# [5.1.0](https://github.com/marionebl/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
+# [5.1.0](https://github.com/conventional-changelog/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
@@ -132,7 +207,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint
-## [5.0.1](https://github.com/marionebl/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
+## [5.0.1](https://github.com/conventional-changelog/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
@@ -140,7 +215,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint
-# [4.3.0](https://github.com/marionebl/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
+# [4.3.0](https://github.com/conventional-changelog/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
@@ -148,7 +223,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint
-## [4.2.2](https://github.com/marionebl/commitlint/compare/v4.2.1...v4.2.2) (2017-10-26)
+## [4.2.2](https://github.com/conventional-changelog/commitlint/compare/v4.2.1...v4.2.2) (2017-10-26)
@@ -156,7 +231,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint
-## [4.2.1](https://github.com/marionebl/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
+## [4.2.1](https://github.com/conventional-changelog/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
@@ -164,7 +239,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package commitlint
-# [4.2.0](https://github.com/marionebl/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
+# [4.2.0](https://github.com/conventional-changelog/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
diff --git a/@alias/commitlint/license.md b/@alias/commitlint/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@alias/commitlint/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@alias/commitlint/package.json b/@alias/commitlint/package.json
index 07666c4a1a..78b29e71b7 100644
--- a/@alias/commitlint/package.json
+++ b/@alias/commitlint/package.json
@@ -1,6 +1,6 @@
{
"name": "commitlint",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Lint your commit messages",
"files": [
"cli.js"
@@ -12,18 +12,17 @@
"deps": "dep-check",
"pkg": "pkg-check --skip-main"
},
- "xo": false,
"engines": {
"node": ">=4"
},
"repository": {
"type": "git",
- "url": "https://github.com/marionebl/commitlint.git"
+ "url": "https://github.com/conventional-changelog/commitlint.git"
},
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"keywords": [
"conventional-changelog",
"commitlint",
@@ -35,11 +34,11 @@
},
"license": "MIT",
"dependencies": {
- "@commitlint/cli": "^7.0.0",
+ "@commitlint/cli": "^7.5.0",
"read-pkg": "3.0.0",
"resolve-pkg": "1.0.0"
},
"devDependencies": {
- "@commitlint/utils": "^7.0.0"
+ "@commitlint/utils": "^7.5.0"
}
}
diff --git a/@commitlint/cli/CHANGELOG.md b/@commitlint/cli/CHANGELOG.md
index 97145f6ba4..0697b4207d 100644
--- a/@commitlint/cli/CHANGELOG.md
+++ b/@commitlint/cli/CHANGELOG.md
@@ -3,19 +3,117 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* **cli:** avoid linebreak in empty input ([#523](https://github.com/conventional-changelog/commitlint/issues/523)) ([3141882](https://github.com/conventional-changelog/commitlint/commit/3141882))
+* all broken website references ([#564](https://github.com/conventional-changelog/commitlint/issues/564)) ([82eeb5a](https://github.com/conventional-changelog/commitlint/commit/82eeb5a))
+* cleanup message for input with no config ([#519](https://github.com/conventional-changelog/commitlint/issues/519)) ([7d9e760](https://github.com/conventional-changelog/commitlint/commit/7d9e760))
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+* replace all website references with conventional changelog ([#563](https://github.com/conventional-changelog/commitlint/issues/563)) ([6b86fb1](https://github.com/conventional-changelog/commitlint/commit/6b86fb1))
+
+
+
+
+
+# [7.4.0](https://github.com/conventional-changelog/commitlint/compare/v7.3.2...v7.4.0) (2019-01-27)
+
+
+
+
+**Note:** Version bump only for package @commitlint/cli
+
+
+## [7.3.2](https://github.com/conventional-changelog/commitlint/compare/v7.3.1...v7.3.2) (2019-01-15)
+
+
+
+
+**Note:** Version bump only for package @commitlint/cli
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/cli
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+### Bug Fixes
+
+* add fallback with husky git params to deprecation handling ([#498](https://github.com/conventional-changelog/commitlint/issues/498)) ([5a34b8c](https://github.com/conventional-changelog/commitlint/commit/5a34b8c))
+* avoid truncated output on macOS ([#503](https://github.com/conventional-changelog/commitlint/issues/503)) ([3192368](https://github.com/conventional-changelog/commitlint/commit/3192368))
+* respect String.protoype.repeat API contract ([f27e7ac](https://github.com/conventional-changelog/commitlint/commit/f27e7ac))
+* update to security-patched dependency versions ([97c033b](https://github.com/conventional-changelog/commitlint/commit/97c033b))
+* use correct label for failing empty subjects ([#481](https://github.com/conventional-changelog/commitlint/issues/481)) ([2e7e34d](https://github.com/conventional-changelog/commitlint/commit/2e7e34d)), closes [#476](https://github.com/conventional-changelog/commitlint/issues/476)
+
+
+### Features
+
+* check stage before entering prompt ([#495](https://github.com/conventional-changelog/commitlint/issues/495)) ([3b3667a](https://github.com/conventional-changelog/commitlint/commit/3b3667a)), closes [#51](https://github.com/conventional-changelog/commitlint/issues/51) [#51](https://github.com/conventional-changelog/commitlint/issues/51)
+* warn on empty config ([#491](https://github.com/conventional-changelog/commitlint/issues/491)) ([b6bd36e](https://github.com/conventional-changelog/commitlint/commit/b6bd36e)), closes [#107](https://github.com/conventional-changelog/commitlint/issues/107) [#107](https://github.com/conventional-changelog/commitlint/issues/107)
+
+
+
+
+
+## [7.2.1](https://github.com/conventional-changelog/commitlint/compare/v7.2.0...v7.2.1) (2018-10-11)
+
+
+### Bug Fixes
+
+* improve format module resolving ([#464](https://github.com/conventional-changelog/commitlint/issues/464)) ([baed8b1](https://github.com/conventional-changelog/commitlint/commit/baed8b1))
+
+
+
+
+
+# [7.2.0](https://github.com/conventional-changelog/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05)
+
+
+### Features
+
+* **cli:** add format option for report output ([1ecf097](https://github.com/conventional-changelog/commitlint/commit/1ecf097))
+
+
+
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/cli
+
+
+# [7.1.0](https://github.com/conventional-changelog/commitlint/compare/v7.0.1...v7.1.0) (2018-08-29)
+
+
+
+
+**Note:** Version bump only for package @commitlint/cli
+
-# [6.2.0](https://github.com/marionebl/commitlint/compare/v6.1.3...v6.2.0) (2018-05-01)
+# [6.2.0](https://github.com/conventional-changelog/commitlint/compare/v6.1.3...v6.2.0) (2018-05-01)
### Features
-* print commit message when the message is invalid ([86c34f1](https://github.com/marionebl/commitlint/commit/86c34f1)), closes [#222](https://github.com/marionebl/commitlint/issues/222)
+* print commit message when the message is invalid ([86c34f1](https://github.com/conventional-changelog/commitlint/commit/86c34f1)), closes [#222](https://github.com/conventional-changelog/commitlint/issues/222)
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
@@ -23,18 +121,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/cli
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
### Features
-* add "--config" option ([#261](https://github.com/marionebl/commitlint/issues/261)) ([2c03ec6](https://github.com/marionebl/commitlint/commit/2c03ec6))
+* add "--config" option ([#261](https://github.com/conventional-changelog/commitlint/issues/261)) ([2c03ec6](https://github.com/conventional-changelog/commitlint/commit/2c03ec6))
-## [6.0.5](https://github.com/marionebl/commitlint/compare/v6.0.4...v6.0.5) (2018-01-31)
+## [6.0.5](https://github.com/conventional-changelog/commitlint/compare/v6.0.4...v6.0.5) (2018-01-31)
@@ -42,7 +140,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/cli
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
@@ -50,7 +148,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/cli
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
@@ -58,7 +156,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/cli
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
@@ -66,7 +164,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/cli
-## [6.0.1](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.1) (2018-01-09)
+## [6.0.1](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.1) (2018-01-09)
@@ -74,18 +172,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/cli
-# [6.0.0](https://github.com/marionebl/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
+# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
### Bug Fixes
-* correctly resolve parserOpts [#115](https://github.com/marionebl/commitlint/issues/115) [#95](https://github.com/marionebl/commitlint/issues/95) ([1353dd5](https://github.com/marionebl/commitlint/commit/1353dd5))
+* correctly resolve parserOpts [#115](https://github.com/conventional-changelog/commitlint/issues/115) [#95](https://github.com/conventional-changelog/commitlint/issues/95) ([1353dd5](https://github.com/conventional-changelog/commitlint/commit/1353dd5))
-## [5.2.6](https://github.com/marionebl/commitlint/compare/v5.2.5...v5.2.6) (2017-12-21)
+## [5.2.6](https://github.com/conventional-changelog/commitlint/compare/v5.2.5...v5.2.6) (2017-12-21)
@@ -93,7 +191,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/cli
-## [5.2.5](https://github.com/marionebl/commitlint/compare/v5.2.4...v5.2.5) (2017-12-08)
+## [5.2.5](https://github.com/conventional-changelog/commitlint/compare/v5.2.4...v5.2.5) (2017-12-08)
@@ -101,7 +199,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/cli
-## [5.2.4](https://github.com/marionebl/commitlint/compare/v5.2.3...v5.2.4) (2017-12-08)
+## [5.2.4](https://github.com/conventional-changelog/commitlint/compare/v5.2.3...v5.2.4) (2017-12-08)
@@ -109,18 +207,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/cli
-## [5.2.3](https://github.com/marionebl/commitlint/compare/v5.2.2...v5.2.3) (2017-12-05)
+## [5.2.3](https://github.com/conventional-changelog/commitlint/compare/v5.2.2...v5.2.3) (2017-12-05)
### Bug Fixes
-* **cli:** add support for GIT_PARAMS on windows ([c62bd41](https://github.com/marionebl/commitlint/commit/c62bd41)), closes [#103](https://github.com/marionebl/commitlint/issues/103) [#175](https://github.com/marionebl/commitlint/issues/175)
+* **cli:** add support for GIT_PARAMS on windows ([c62bd41](https://github.com/conventional-changelog/commitlint/commit/c62bd41)), closes [#103](https://github.com/conventional-changelog/commitlint/issues/103) [#175](https://github.com/conventional-changelog/commitlint/issues/175)
-# [5.2.0](https://github.com/marionebl/commitlint/compare/v5.1.3...v5.2.0) (2017-11-30)
+# [5.2.0](https://github.com/conventional-changelog/commitlint/compare/v5.1.3...v5.2.0) (2017-11-30)
@@ -128,7 +226,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/cli
-## [5.1.1](https://github.com/marionebl/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
+## [5.1.1](https://github.com/conventional-changelog/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
@@ -136,23 +234,23 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/cli
-# [5.1.0](https://github.com/marionebl/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
+# [5.1.0](https://github.com/conventional-changelog/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
### Bug Fixes
-* update dependency concurrently to v3.5.1 ([#147](https://github.com/marionebl/commitlint/issues/147)) ([a809d0f](https://github.com/marionebl/commitlint/commit/a809d0f))
+* update dependency concurrently to v3.5.1 ([#147](https://github.com/conventional-changelog/commitlint/issues/147)) ([a809d0f](https://github.com/conventional-changelog/commitlint/commit/a809d0f))
### Features
-* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/marionebl/commitlint/commit/3e6e6a8))
+* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/conventional-changelog/commitlint/commit/3e6e6a8))
-## [5.0.1](https://github.com/marionebl/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
+## [5.0.1](https://github.com/conventional-changelog/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
@@ -160,7 +258,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/cli
-# [4.3.0](https://github.com/marionebl/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
+# [4.3.0](https://github.com/conventional-changelog/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
@@ -168,7 +266,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/cli
-## [4.2.2](https://github.com/marionebl/commitlint/compare/v4.2.1...v4.2.2) (2017-10-26)
+## [4.2.2](https://github.com/conventional-changelog/commitlint/compare/v4.2.1...v4.2.2) (2017-10-26)
@@ -176,30 +274,30 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/cli
-## [4.2.1](https://github.com/marionebl/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
+## [4.2.1](https://github.com/conventional-changelog/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
### Bug Fixes
-* nicer error messages ([#93](https://github.com/marionebl/commitlint/issues/93)) ([dcfad61](https://github.com/marionebl/commitlint/commit/dcfad61))
-* **core:** consider config outside of current git repo ([f7234b6](https://github.com/marionebl/commitlint/commit/f7234b6))
+* nicer error messages ([#93](https://github.com/conventional-changelog/commitlint/issues/93)) ([dcfad61](https://github.com/conventional-changelog/commitlint/commit/dcfad61))
+* **core:** consider config outside of current git repo ([f7234b6](https://github.com/conventional-changelog/commitlint/commit/f7234b6))
-# [4.2.0](https://github.com/marionebl/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
+# [4.2.0](https://github.com/conventional-changelog/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
### Features
-* edit flag now accepts the path to the commit file ([c881433](https://github.com/marionebl/commitlint/commit/c881433)), closes [#40](https://github.com/marionebl/commitlint/issues/40)
+* edit flag now accepts the path to the commit file ([c881433](https://github.com/conventional-changelog/commitlint/commit/c881433)), closes [#40](https://github.com/conventional-changelog/commitlint/issues/40)
-## [4.1.1](https://github.com/marionebl/commitlint/compare/v4.1.0...v4.1.1) (2017-10-09)
+## [4.1.1](https://github.com/conventional-changelog/commitlint/compare/v4.1.0...v4.1.1) (2017-10-09)
@@ -207,7 +305,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/cli
-# [4.1.0](https://github.com/marionebl/commitlint/compare/v4.0.0...v4.1.0) (2017-10-05)
+# [4.1.0](https://github.com/conventional-changelog/commitlint/compare/v4.0.0...v4.1.0) (2017-10-05)
@@ -215,12 +313,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/cli
-# [4.0.0](https://github.com/marionebl/commitlint/compare/v3.2.0...v4.0.0) (2017-10-04)
+# [4.0.0](https://github.com/conventional-changelog/commitlint/compare/v3.2.0...v4.0.0) (2017-10-04)
### Features
-* enable alternative config formats ([#83](https://github.com/marionebl/commitlint/issues/83)) ([91968b8](https://github.com/marionebl/commitlint/commit/91968b8)), closes [#73](https://github.com/marionebl/commitlint/issues/73)
+* enable alternative config formats ([#83](https://github.com/conventional-changelog/commitlint/issues/83)) ([91968b8](https://github.com/conventional-changelog/commitlint/commit/91968b8)), closes [#73](https://github.com/conventional-changelog/commitlint/issues/73)
### BREAKING CHANGES
@@ -238,7 +336,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* add preset parser ([5cd2335](https://github.com/marionebl/commitlint/commit/5cd2335))
+* add preset parser ([5cd2335](https://github.com/conventional-changelog/commitlint/commit/5cd2335))
@@ -248,7 +346,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Bug Fixes
-* **core:** determine git root correctly in sub directories ([#64](https://github.com/marionebl/commitlint/issues/64)) ([d594ec4](https://github.com/marionebl/commitlint/commit/d594ec4)), closes [#62](https://github.com/marionebl/commitlint/issues/62)
+* **core:** determine git root correctly in sub directories ([#64](https://github.com/conventional-changelog/commitlint/issues/64)) ([d594ec4](https://github.com/conventional-changelog/commitlint/commit/d594ec4)), closes [#62](https://github.com/conventional-changelog/commitlint/issues/62)
@@ -268,7 +366,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Bug Fixes
-* **core:** correct type validation message ([09c2b26](https://github.com/marionebl/commitlint/commit/09c2b26))
+* **core:** correct type validation message ([09c2b26](https://github.com/conventional-changelog/commitlint/commit/09c2b26))
@@ -283,8 +381,8 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Bug Fixes
-* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/marionebl/commitlint/commit/fe8caff))
-* ensure node4 compat ([bfeb653](https://github.com/marionebl/commitlint/commit/bfeb653))
+* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/conventional-changelog/commitlint/commit/fe8caff))
+* ensure node4 compat ([bfeb653](https://github.com/conventional-changelog/commitlint/commit/bfeb653))
@@ -295,7 +393,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Bug Fixes
-* **core:** determine git root correctly in sub directories ([#64](https://github.com/marionebl/commitlint/issues/64)) ([d594ec4](https://github.com/marionebl/commitlint/commit/d594ec4)), closes [#62](https://github.com/marionebl/commitlint/issues/62)
+* **core:** determine git root correctly in sub directories ([#64](https://github.com/conventional-changelog/commitlint/issues/64)) ([d594ec4](https://github.com/conventional-changelog/commitlint/commit/d594ec4)), closes [#62](https://github.com/conventional-changelog/commitlint/issues/62)
@@ -315,7 +413,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Bug Fixes
-* **core:** correct type validation message ([09c2b26](https://github.com/marionebl/commitlint/commit/09c2b26))
+* **core:** correct type validation message ([09c2b26](https://github.com/conventional-changelog/commitlint/commit/09c2b26))
@@ -330,8 +428,8 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Bug Fixes
-* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/marionebl/commitlint/commit/fe8caff))
-* ensure node4 compat ([bfeb653](https://github.com/marionebl/commitlint/commit/bfeb653))
+* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/conventional-changelog/commitlint/commit/fe8caff))
+* ensure node4 compat ([bfeb653](https://github.com/conventional-changelog/commitlint/commit/bfeb653))
@@ -352,7 +450,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Bug Fixes
-* **core:** correct type validation message ([09c2b26](https://github.com/marionebl/commitlint/commit/09c2b26))
+* **core:** correct type validation message ([09c2b26](https://github.com/conventional-changelog/commitlint/commit/09c2b26))
@@ -367,8 +465,8 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Bug Fixes
-* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/marionebl/commitlint/commit/fe8caff))
-* ensure node4 compat ([bfeb653](https://github.com/marionebl/commitlint/commit/bfeb653))
+* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/conventional-changelog/commitlint/commit/fe8caff))
+* ensure node4 compat ([bfeb653](https://github.com/conventional-changelog/commitlint/commit/bfeb653))
@@ -379,7 +477,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Bug Fixes
-* **core:** correct type validation message ([09c2b26](https://github.com/marionebl/commitlint/commit/09c2b26))
+* **core:** correct type validation message ([09c2b26](https://github.com/conventional-changelog/commitlint/commit/09c2b26))
@@ -394,8 +492,8 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Bug Fixes
-* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/marionebl/commitlint/commit/fe8caff))
-* ensure node4 compat ([bfeb653](https://github.com/marionebl/commitlint/commit/bfeb653))
+* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/conventional-changelog/commitlint/commit/fe8caff))
+* ensure node4 compat ([bfeb653](https://github.com/conventional-changelog/commitlint/commit/bfeb653))
@@ -411,8 +509,8 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Bug Fixes
-* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/marionebl/commitlint/commit/fe8caff))
-* ensure node4 compat ([bfeb653](https://github.com/marionebl/commitlint/commit/bfeb653))
+* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/conventional-changelog/commitlint/commit/fe8caff))
+* ensure node4 compat ([bfeb653](https://github.com/conventional-changelog/commitlint/commit/bfeb653))
@@ -423,8 +521,8 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Bug Fixes
-* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/marionebl/commitlint/commit/fe8caff))
-* ensure node4 compat ([bfeb653](https://github.com/marionebl/commitlint/commit/bfeb653))
+* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/conventional-changelog/commitlint/commit/fe8caff))
+* ensure node4 compat ([bfeb653](https://github.com/conventional-changelog/commitlint/commit/bfeb653))
@@ -435,8 +533,8 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Bug Fixes
-* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/marionebl/commitlint/commit/fe8caff))
-* ensure node4 compat ([bfeb653](https://github.com/marionebl/commitlint/commit/bfeb653))
+* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/conventional-changelog/commitlint/commit/fe8caff))
+* ensure node4 compat ([bfeb653](https://github.com/conventional-changelog/commitlint/commit/bfeb653))
@@ -452,8 +550,8 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Bug Fixes
-* **cli:** remove destructuring for node 4 support ([94437e8](https://github.com/marionebl/commitlint/commit/94437e8))
-* ensure node4 compat ([a5e658a](https://github.com/marionebl/commitlint/commit/a5e658a))
+* **cli:** remove destructuring for node 4 support ([94437e8](https://github.com/conventional-changelog/commitlint/commit/94437e8))
+* ensure node4 compat ([a5e658a](https://github.com/conventional-changelog/commitlint/commit/a5e658a))
@@ -464,5 +562,5 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Bug Fixes
-* **cli:** remove destructuring for node 4 support ([94437e8](https://github.com/marionebl/commitlint/commit/94437e8))
-* ensure node4 compat ([a5e658a](https://github.com/marionebl/commitlint/commit/a5e658a))
+* **cli:** remove destructuring for node 4 support ([94437e8](https://github.com/conventional-changelog/commitlint/commit/94437e8))
+* ensure node4 compat ([a5e658a](https://github.com/conventional-changelog/commitlint/commit/a5e658a))
diff --git a/@commitlint/cli/README.md b/@commitlint/cli/README.md
index 2366b561b5..75f3b0fa4c 100644
--- a/@commitlint/cli/README.md
+++ b/@commitlint/cli/README.md
@@ -1,7 +1,7 @@
> Lint commit messages
-
+
# @commitlint/cli
@@ -13,4 +13,4 @@ npm install --save-dev @commitlint/cli @commitlint/config-angular
echo "module.exports = {extends: ['@commitlint/config-angular']};" > commitlint.config.js
```
-Consult [docs/cli](http://marionebl.github.io/commitlint/#/reference-cli) for comprehensive documentation.
+Consult [docs/cli](https://conventional-changelog.github.io/commitlint/#/reference-cli) for comprehensive documentation.
diff --git a/@commitlint/cli/commitlint.config.js b/@commitlint/cli/commitlint.config.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/@commitlint/cli/fixtures/custom-formatter/commitlint.config.js b/@commitlint/cli/fixtures/custom-formatter/commitlint.config.js
new file mode 100644
index 0000000000..f6155202a9
--- /dev/null
+++ b/@commitlint/cli/fixtures/custom-formatter/commitlint.config.js
@@ -0,0 +1,6 @@
+module.exports = {
+ formatter: 'custom-formatter',
+ rules: {
+ 'type-enum': [2, 'never', ['foo']]
+ }
+};
diff --git a/@commitlint/cli/fixtures/custom-formatter/formatters/custom.js b/@commitlint/cli/fixtures/custom-formatter/formatters/custom.js
new file mode 100644
index 0000000000..8f56d1384f
--- /dev/null
+++ b/@commitlint/cli/fixtures/custom-formatter/formatters/custom.js
@@ -0,0 +1,3 @@
+module.exports = function(_report) {
+ return 'custom-formatter-ok';
+};
diff --git a/@commitlint/cli/fixtures/default/commitlint.config.js b/@commitlint/cli/fixtures/default/commitlint.config.js
new file mode 100644
index 0000000000..b6775fef5b
--- /dev/null
+++ b/@commitlint/cli/fixtures/default/commitlint.config.js
@@ -0,0 +1,5 @@
+module.exports = {
+ rules: {
+ 'type-enum': [2, 'never', ['foo']]
+ }
+};
diff --git a/@commitlint/cli/fixtures/husky/integration/commitlint.config.js b/@commitlint/cli/fixtures/husky/integration/commitlint.config.js
new file mode 100644
index 0000000000..b6775fef5b
--- /dev/null
+++ b/@commitlint/cli/fixtures/husky/integration/commitlint.config.js
@@ -0,0 +1,5 @@
+module.exports = {
+ rules: {
+ 'type-enum': [2, 'never', ['foo']]
+ }
+};
diff --git a/@commitlint/cli/fixtures/husky/integration/package.json b/@commitlint/cli/fixtures/husky/integration/package.json
index 3503ac09fa..c90ae33950 100644
--- a/@commitlint/cli/fixtures/husky/integration/package.json
+++ b/@commitlint/cli/fixtures/husky/integration/package.json
@@ -1,6 +1,6 @@
{
"scripts": {},
"devDependencies": {
- "husky": "0.14.3"
+ "husky": "1.1.2"
}
}
diff --git a/@commitlint/cli/fixtures/husky/package.json b/@commitlint/cli/fixtures/husky/package.json
index 00d6ade81e..336a1f923e 100644
--- a/@commitlint/cli/fixtures/husky/package.json
+++ b/@commitlint/cli/fixtures/husky/package.json
@@ -1,6 +1,6 @@
{
"scripts": {},
"devDependencies": {
- "husky": "0.14.3"
+ "husky": "1.1.2"
}
}
diff --git a/@commitlint/cli/fixtures/signoff/package.json b/@commitlint/cli/fixtures/signoff/package.json
index 00d6ade81e..336a1f923e 100644
--- a/@commitlint/cli/fixtures/signoff/package.json
+++ b/@commitlint/cli/fixtures/signoff/package.json
@@ -1,6 +1,6 @@
{
"scripts": {},
"devDependencies": {
- "husky": "0.14.3"
+ "husky": "1.1.2"
}
}
diff --git a/@commitlint/cli/license.md b/@commitlint/cli/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@commitlint/cli/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@commitlint/cli/package.json b/@commitlint/cli/package.json
index 4a8c8763b3..9a8a062bfe 100644
--- a/@commitlint/cli/package.json
+++ b/@commitlint/cli/package.json
@@ -1,6 +1,6 @@
{
"name": "@commitlint/cli",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Lint your commit messages",
"files": [
"index.js",
@@ -15,7 +15,6 @@
"clean": "npx rimraf lib",
"deps": "dep-check",
"pkg": "pkg-check",
- "lint": "xo",
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
"test": "ava -c 4 --verbose",
"watch": "babel src --out-dir lib --watch --source-maps"
@@ -33,18 +32,17 @@
"babel-preset-commitlint"
]
},
- "xo": false,
"engines": {
"node": ">=4"
},
"repository": {
"type": "git",
- "url": "https://github.com/marionebl/commitlint.git"
+ "url": "https://github.com/conventional-changelog/commitlint.git"
},
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"keywords": [
"conventional-changelog",
"commitlint",
@@ -56,11 +54,11 @@
},
"license": "MIT",
"devDependencies": {
- "@commitlint/test": "^7.0.0",
- "@commitlint/utils": "^7.0.0",
+ "@commitlint/test": "^7.5.0",
+ "@commitlint/utils": "^7.5.0",
"ava": "0.18.2",
"babel-cli": "6.26.0",
- "babel-preset-commitlint": "^7.0.0",
+ "babel-preset-commitlint": "^7.5.0",
"babel-register": "6.26.0",
"concurrently": "3.5.1",
"cross-env": "5.1.1",
@@ -71,19 +69,19 @@
"rimraf": "2.6.2",
"sander": "0.6.0",
"string-to-stream": "1.1.0",
- "tmp": "0.0.33",
- "xo": "0.20.3"
+ "tmp": "0.0.33"
},
"dependencies": {
- "@commitlint/format": "^7.0.0",
- "@commitlint/lint": "^7.0.0",
- "@commitlint/load": "^7.0.0",
- "@commitlint/read": "^7.0.0",
+ "@commitlint/format": "^7.5.0",
+ "@commitlint/lint": "^7.5.0",
+ "@commitlint/load": "^7.5.0",
+ "@commitlint/read": "^7.5.0",
"babel-polyfill": "6.26.0",
"chalk": "2.3.1",
"get-stdin": "5.0.1",
- "lodash.merge": "4.6.1",
- "lodash.pick": "4.4.0",
- "meow": "^5.0.0"
+ "lodash": "4.17.11",
+ "meow": "5.0.0",
+ "resolve-from": "4.0.0",
+ "resolve-global": "0.1.0"
}
}
diff --git a/@commitlint/cli/src/cli.js b/@commitlint/cli/src/cli.js
index bd861e8b8d..b9bec5484a 100755
--- a/@commitlint/cli/src/cli.js
+++ b/@commitlint/cli/src/cli.js
@@ -1,15 +1,14 @@
#!/usr/bin/env node
require('babel-polyfill'); // eslint-disable-line import/no-unassigned-import
-const format = require('@commitlint/format');
const load = require('@commitlint/load');
const lint = require('@commitlint/lint');
const read = require('@commitlint/read');
-const chalk = require('chalk');
const meow = require('meow');
-const merge = require('lodash.merge');
-const pick = require('lodash.pick');
+const {merge, pick} = require('lodash');
const stdin = require('get-stdin');
+const resolveFrom = require('resolve-from');
+const resolveGlobal = require('resolve-global');
const pkg = require('../package');
const help = require('./help');
@@ -63,6 +62,12 @@ const flags = {
description: 'lower end of the commit range to lint; applies if edit=false',
type: 'string'
},
+ format: {
+ alias: 'o',
+ default: null,
+ description: 'output format of the results',
+ type: 'string'
+ },
'parser-preset': {
alias: 'p',
description: 'configuration preset to use for conventional-commits-parser',
@@ -113,12 +118,12 @@ async function main(options) {
const fromStdin = checkFromStdin(raw, flags);
const range = pick(flags, 'edit', 'from', 'to');
- const fmt = new chalk.constructor({enabled: flags.color});
const input = await (fromStdin ? stdin() : read(range, {cwd: flags.cwd}));
const messages = (Array.isArray(input) ? input : [input])
.filter(message => typeof message === 'string')
+ .filter(message => message.trim() !== '')
.filter(Boolean);
if (messages.length === 0 && !checkFromRepository(flags)) {
@@ -135,34 +140,72 @@ async function main(options) {
const loaded = await load(getSeed(flags), loadOpts);
const parserOpts = selectParserOpts(loaded.parserPreset);
const opts = parserOpts ? {parserOpts} : {parserOpts: {}};
+ const format = loadFormatter(loaded, flags);
// Strip comments if reading from `.git/COMMIT_EDIT_MSG`
if (range.edit) {
opts.parserOpts.commentChar = '#';
}
- return Promise.all(
- messages.map(async message => {
- const report = await lint(message, loaded.rules, opts);
- const formatted = format(report, {color: flags.color});
- const input =
- report.errors.length > 0
- ? `\n${report.input}\n`
- : message.split('\n')[0];
-
- if (!flags.quiet) {
- console.log(`${fmt.grey('⧗')} input: ${fmt.bold(input)}`);
- console.log(formatted.join('\n'));
- }
-
- if (report.errors.length > 0) {
- const error = new Error(formatted[formatted.length - 1]);
- error.type = pkg.name;
- throw error;
- }
- console.log('');
- })
+ const results = await Promise.all(
+ messages.map(message => lint(message, loaded.rules, opts))
);
+
+ if (Object.keys(loaded.rules).length === 0) {
+ let input = '';
+
+ if (results.length !== 0) {
+ const originalInput = results[0].input;
+ input = originalInput;
+ }
+
+ results.splice(0, results.length, {
+ valid: false,
+ errors: [
+ {
+ level: 2,
+ valid: false,
+ name: 'empty-rules',
+ message: [
+ 'Please add rules to your `commitlint.config.js`',
+ ' - Getting started guide: https://git.io/fpUzJ',
+ ' - Example config: https://git.io/fpUzm'
+ ].join('\n')
+ }
+ ],
+ warnings: [],
+ input
+ });
+ }
+
+ const report = results.reduce(
+ (info, result) => {
+ info.valid = result.valid ? info.valid : false;
+ info.errorCount += result.errors.length;
+ info.warningCount += result.warnings.length;
+ info.results.push(result);
+
+ return info;
+ },
+ {
+ valid: true,
+ errorCount: 0,
+ warningCount: 0,
+ results: []
+ }
+ );
+
+ const output = format(report, {color: flags.color});
+
+ if (!flags.quiet) {
+ console.log(output);
+ }
+
+ if (!report.valid) {
+ const err = new Error(output);
+ err.type = pkg.name;
+ throw err;
+ }
}
function checkFromStdin(input, flags) {
@@ -199,7 +242,7 @@ function getEditValue(flags) {
}
return process.env[flags.env];
}
- const edit = flags.edit;
+ const {edit} = flags;
// If the edit flag is set but empty (i.e '-e') we default
// to .git/COMMIT_EDITMSG
if (edit === '') {
@@ -208,20 +251,28 @@ function getEditValue(flags) {
if (typeof edit === 'boolean') {
return edit;
}
- // The recommended method to specify -e with husky was `commitlint -e $GIT_PARAMS`
+ // The recommended method to specify -e with husky was `commitlint -e $HUSKY_GIT_PARAMS`
// This does not work properly with win32 systems, where env variable declarations
// use a different syntax
- // See https://github.com/marionebl/commitlint/issues/103 for details
+ // See https://github.com/conventional-changelog/commitlint/issues/103 for details
// This has been superceded by the `-E GIT_PARAMS` / `-E HUSKY_GIT_PARAMS`
- if (edit === '$GIT_PARAMS' || edit === '%GIT_PARAMS%') {
+ const isGitParams = edit === '$GIT_PARAMS' || edit === '%GIT_PARAMS%';
+ const isHuskyParams =
+ edit === '$HUSKY_GIT_PARAMS' || edit === '%HUSKY_GIT_PARAMS%';
+
+ if (isGitParams || isHuskyParams) {
console.warn(`Using environment variable syntax (${edit}) in -e |\
---edit is deprecated. Use '{-E|--env} GIT_PARAMS instead'`);
- if (!('GIT_PARAMS' in process.env)) {
- throw new Error(
- `Received ${edit} as value for -e | --edit, but GIT_PARAMS is not available globally.`
- );
+--edit is deprecated. Use '{-E|--env} HUSKY_GIT_PARAMS instead'`);
+
+ if (isGitParams && 'GIT_PARAMS' in process.env) {
+ return process.env.GIT_PARAMS;
}
- return process.env.GIT_PARAMS;
+ if ('HUSKY_GIT_PARAMS' in process.env) {
+ return process.env.HUSKY_GIT_PARAMS;
+ }
+ throw new Error(
+ `Received ${edit} as value for -e | --edit, but GIT_PARAMS or HUSKY_GIT_PARAMS are not available globally.`
+ );
}
return edit;
}
@@ -246,6 +297,20 @@ function selectParserOpts(parserPreset) {
return parserPreset.parserOpts;
}
+function loadFormatter(config, flags) {
+ const moduleName = flags.format || config.formatter || '@commitlint/format';
+ const modulePath =
+ resolveFrom.silent(__dirname, moduleName) ||
+ resolveFrom.silent(flags.cwd, moduleName) ||
+ resolveGlobal.silent(moduleName);
+
+ if (modulePath) {
+ return require(modulePath);
+ }
+
+ throw new Error(`Using format ${moduleName}, but cannot find the module.`);
+}
+
// Catch unhandled rejections globally
process.on('unhandledRejection', (reason, promise) => {
console.log('Unhandled Rejection at: Promise ', promise, ' reason: ', reason);
diff --git a/@commitlint/cli/src/cli.test.js b/@commitlint/cli/src/cli.test.js
index 7cf8f32b92..0f454d9333 100644
--- a/@commitlint/cli/src/cli.test.js
+++ b/@commitlint/cli/src/cli.test.js
@@ -2,7 +2,7 @@ import path from 'path';
import {fix, git} from '@commitlint/test';
import test from 'ava';
import execa from 'execa';
-import merge from 'lodash.merge';
+import {merge} from 'lodash';
import * as sander from 'sander';
import stream from 'string-to-stream';
@@ -21,34 +21,40 @@ const cli = (args, options) => {
};
test('should throw when called without [input]', async t => {
- const cwd = await git.bootstrap('fixtures/empty');
+ const cwd = await git.bootstrap('fixtures/default');
const actual = await cli([], {cwd})();
t.is(actual.code, 1);
});
test('should reprint input from stdin', async t => {
- const cwd = await git.bootstrap('fixtures/empty');
+ const cwd = await git.bootstrap('fixtures/default');
const actual = await cli([], {cwd})('foo: bar');
t.true(actual.stdout.includes('foo: bar'));
});
test('should produce no success output with --quiet flag', async t => {
- const cwd = await git.bootstrap('fixtures/empty');
+ const cwd = await git.bootstrap('fixtures/default');
const actual = await cli(['--quiet'], {cwd})('foo: bar');
t.is(actual.stdout, '');
t.is(actual.stderr, '');
});
test('should produce no success output with -q flag', async t => {
- const cwd = await git.bootstrap('fixtures/empty');
+ const cwd = await git.bootstrap('fixtures/default');
const actual = await cli(['-q'], {cwd})('foo: bar');
t.is(actual.stdout, '');
t.is(actual.stderr, '');
});
-test('should succeed for input from stdin without rules', async t => {
+test('should fail for input from stdin without rules', async t => {
const cwd = await git.bootstrap('fixtures/empty');
const actual = await cli([], {cwd})('foo: bar');
+ t.is(actual.code, 1);
+});
+
+test('should succeed for input from stdin with rules', async t => {
+ const cwd = await git.bootstrap('fixtures/default');
+ const actual = await cli([], {cwd})('type: bar');
t.is(actual.code, 0);
});
@@ -127,8 +133,32 @@ test('should work with husky via commitlint -e %GIT_PARAMS%', async () => {
await execa('git', ['commit', '-m', '"test: this should work"'], {cwd});
});
+test('should work with husky via commitlint -e $HUSKY_GIT_PARAMS', async () => {
+ const cwd = await git.bootstrap('fixtures/husky/integration');
+ await writePkg(
+ {scripts: {commitmsg: `'${bin}' -e $HUSKY_GIT_PARAMS`}},
+ {cwd}
+ );
+
+ await execa('npm', ['install'], {cwd});
+ await execa('git', ['add', 'package.json'], {cwd});
+ await execa('git', ['commit', '-m', '"test: this should work"'], {cwd});
+});
+
+test('should work with husky via commitlint -e %HUSKY_GIT_PARAMS%', async () => {
+ const cwd = await git.bootstrap('fixtures/husky/integration');
+ await writePkg(
+ {scripts: {commitmsg: `'${bin}' -e %HUSKY_GIT_PARAMS%`}},
+ {cwd}
+ );
+
+ await execa('npm', ['install'], {cwd});
+ await execa('git', ['add', 'package.json'], {cwd});
+ await execa('git', ['commit', '-m', '"test: this should work"'], {cwd});
+});
+
test('should allow reading of environment variables for edit file, succeeding if valid', async t => {
- const cwd = await git.bootstrap();
+ const cwd = await git.bootstrap('fixtures/simple');
await sander.writeFile(cwd, 'commit-msg-file', 'foo');
const actual = await cli(['--env', 'variable'], {
cwd,
@@ -157,7 +187,7 @@ test('should pick up parser preset and fail accordingly', async t => {
'type(scope): subject'
);
t.is(actual.code, 1);
- t.true(actual.stdout.includes('message may not be empty [subject-empty]'));
+ t.true(actual.stdout.includes('may not be empty'));
});
test('should pick up parser preset and succeed accordingly', async t => {
@@ -230,8 +260,8 @@ test('should print full commit message when input from stdin fails', async t =>
});
test('should not print full commit message when input succeeds', async t => {
- const cwd = await git.bootstrap('fixtures/empty');
- const message = 'foo: bar\n\nFoo bar bizz buzz.\n\nCloses #123.';
+ const cwd = await git.bootstrap('fixtures/default');
+ const message = 'type: bar\n\nFoo bar bizz buzz.\n\nCloses #123.';
const actual = await cli([], {cwd})(message);
t.false(actual.stdout.includes(message));
@@ -239,6 +269,57 @@ test('should not print full commit message when input succeeds', async t => {
t.is(actual.code, 0);
});
+test('should fail for invalid formatters from configuration', async t => {
+ const cwd = await git.bootstrap('fixtures/custom-formatter');
+ const actual = await cli([], {cwd})('foo: bar');
+ t.true(
+ actual.stderr.includes(
+ `Using format custom-formatter, but cannot find the module`
+ )
+ );
+ t.is(actual.stdout, '');
+ t.is(actual.code, 1);
+});
+
+test('should fail for invalid formatters from flags', async t => {
+ const cwd = await git.bootstrap('fixtures/custom-formatter');
+ const actual = await cli(['--format', 'through-flag'], {cwd})('foo: bar');
+ t.true(
+ actual.stderr.includes(
+ `Using format through-flag, but cannot find the module`
+ )
+ );
+ t.is(actual.stdout, '');
+ t.is(actual.code, 1);
+});
+
+test('should work with absolute formatter path', async t => {
+ const formatterPath = path.resolve(
+ __dirname,
+ '../fixtures/custom-formatter/formatters/custom.js'
+ );
+ const cwd = await git.bootstrap('fixtures/custom-formatter');
+ const actual = await cli(['--format', formatterPath], {cwd})(
+ 'test: this should work'
+ );
+
+ t.true(actual.stdout.includes('custom-formatter-ok'));
+ t.is(actual.code, 0);
+});
+
+test('should work with relative formatter path', async t => {
+ const cwd = path.resolve(
+ await git.bootstrap('fixtures/custom-formatter'),
+ './formatters'
+ );
+ const actual = await cli(['--format', './custom.js'], {cwd})(
+ 'test: this should work'
+ );
+
+ t.true(actual.stdout.includes('custom-formatter-ok'));
+ t.is(actual.code, 0);
+});
+
async function writePkg(payload, options) {
const pkgPath = path.join(options.cwd, 'package.json');
const pkg = JSON.parse(await sander.readFile(pkgPath));
diff --git a/@commitlint/cli/src/help.js b/@commitlint/cli/src/help.js
index 63518448a4..42c0d597c9 100644
--- a/@commitlint/cli/src/help.js
+++ b/@commitlint/cli/src/help.js
@@ -21,12 +21,14 @@ module.exports = flags => {
const flags = line[0];
const desc = line[1];
const defaults = line[2];
- const fs = flags.map(
- flag => (flag.length > 1 ? `--${flag}` : ` -${flag}`)
+ const fs = flags.map(flag =>
+ flag.length > 1 ? `--${flag}` : ` -${flag}`
);
const ds = defaults ? `, defaults to: ${defaults}` : '';
const length = flags.reduce((sum, flag) => sum + flag.length, 0);
- return `${fs.join(',')}${' '.repeat(4 + longest - length)}${desc}${ds}`;
+ return `${fs.join(',')}${' '.repeat(
+ Math.max(4 + longest - length, 0)
+ )}${desc}${ds}`;
})
.join('\n');
};
diff --git a/@commitlint/config-angular-type-enum/CHANGELOG.md b/@commitlint/config-angular-type-enum/CHANGELOG.md
index b4838a6b5a..4fd00df72b 100644
--- a/@commitlint/config-angular-type-enum/CHANGELOG.md
+++ b/@commitlint/config-angular-type-enum/CHANGELOG.md
@@ -3,8 +3,43 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/config-angular-type-enum
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/config-angular-type-enum
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/config-angular-type-enum
+
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
@@ -12,7 +47,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-angular-type-enum
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
@@ -20,7 +55,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-angular-type-enum
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
@@ -28,7 +63,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-angular-type-enum
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
@@ -36,7 +71,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-angular-type-enum
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
@@ -44,7 +79,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-angular-type-enum
-## [5.1.1](https://github.com/marionebl/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
+## [5.1.1](https://github.com/conventional-changelog/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
@@ -52,18 +87,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-angular-type-enum
-# [5.1.0](https://github.com/marionebl/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
+# [5.1.0](https://github.com/conventional-changelog/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
### Features
-* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/marionebl/commitlint/commit/3e6e6a8))
+* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/conventional-changelog/commitlint/commit/3e6e6a8))
-## [5.0.1](https://github.com/marionebl/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
+## [5.0.1](https://github.com/conventional-changelog/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
diff --git a/@commitlint/config-angular-type-enum/license.md b/@commitlint/config-angular-type-enum/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@commitlint/config-angular-type-enum/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@commitlint/config-angular-type-enum/package.json b/@commitlint/config-angular-type-enum/package.json
index 306f60c1fb..df96cc76d7 100644
--- a/@commitlint/config-angular-type-enum/package.json
+++ b/@commitlint/config-angular-type-enum/package.json
@@ -1,6 +1,6 @@
{
"name": "@commitlint/config-angular-type-enum",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Shareable commitlint config enforcing the angular commit convention types",
"files": [
"index.js"
@@ -9,14 +9,12 @@
"clean": "exit 0",
"deps": "dep-check",
"pkg": "pkg-check",
- "lint": "xo",
"start": "exit 0",
"test": "exit 0"
},
- "xo": false,
"repository": {
"type": "git",
- "url": "git+https://github.com/marionebl/commitlint.git"
+ "url": "git+https://github.com/conventional-changelog/commitlint.git"
},
"keywords": [
"conventional-changelog",
@@ -27,11 +25,10 @@
"author": "Mario Nebl ",
"license": "MIT",
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"devDependencies": {
- "@commitlint/utils": "^7.0.0",
- "xo": "0.20.3"
+ "@commitlint/utils": "^7.5.0"
}
}
diff --git a/@commitlint/config-angular/CHANGELOG.md b/@commitlint/config-angular/CHANGELOG.md
index 8da1265280..813c2c41ad 100644
--- a/@commitlint/config-angular/CHANGELOG.md
+++ b/@commitlint/config-angular/CHANGELOG.md
@@ -3,8 +3,45 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* all broken website references ([#564](https://github.com/conventional-changelog/commitlint/issues/564)) ([82eeb5a](https://github.com/conventional-changelog/commitlint/commit/82eeb5a))
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+* replace all website references with conventional changelog ([#563](https://github.com/conventional-changelog/commitlint/issues/563)) ([6b86fb1](https://github.com/conventional-changelog/commitlint/commit/6b86fb1))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/config-angular
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/config-angular
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/config-angular
+
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
@@ -12,7 +49,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-angular
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
@@ -20,7 +57,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-angular
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
@@ -28,7 +65,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-angular
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
@@ -36,7 +73,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-angular
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
@@ -44,7 +81,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-angular
-## [5.1.1](https://github.com/marionebl/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
+## [5.1.1](https://github.com/conventional-changelog/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
@@ -52,18 +89,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-angular
-# [5.1.0](https://github.com/marionebl/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
+# [5.1.0](https://github.com/conventional-changelog/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
### Features
-* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/marionebl/commitlint/commit/3e6e6a8))
+* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/conventional-changelog/commitlint/commit/3e6e6a8))
-## [5.0.1](https://github.com/marionebl/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
+## [5.0.1](https://github.com/conventional-changelog/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
@@ -71,18 +108,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-angular
-# [4.3.0](https://github.com/marionebl/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
+# [4.3.0](https://github.com/conventional-changelog/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
### Bug Fixes
-* **core:** deprecate nlp rules ([bbab1d8](https://github.com/marionebl/commitlint/commit/bbab1d8)), closes [#54](https://github.com/marionebl/commitlint/issues/54)
+* **core:** deprecate nlp rules ([bbab1d8](https://github.com/conventional-changelog/commitlint/commit/bbab1d8)), closes [#54](https://github.com/conventional-changelog/commitlint/issues/54)
-## [4.2.1](https://github.com/marionebl/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
+## [4.2.1](https://github.com/conventional-changelog/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
@@ -90,7 +127,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-angular
-# [4.2.0](https://github.com/marionebl/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
+# [4.2.0](https://github.com/conventional-changelog/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
diff --git a/@commitlint/config-angular/README.md b/@commitlint/config-angular/README.md
index 6e85b98a3b..62ae7f98ae 100644
--- a/@commitlint/config-angular/README.md
+++ b/@commitlint/config-angular/README.md
@@ -20,7 +20,7 @@ echo "module.exports = {extends: ['@commitlint/config-angular']};" > commitlint.
### Problems
The following rules are considered problems for `@commitlint/config-angular` and will yield a non-zero exit code when not met.
-Consult [docs/rules](http://marionebl.github.io/commitlint/#/reference-rules) for a list of available rules.
+Consult [docs/rules](https://conventional-changelog.github.io/commitlint/#/reference-rules) for a list of available rules.
#### type-enum
diff --git a/@commitlint/config-angular/index.js b/@commitlint/config-angular/index.js
index 73f7d5d445..00c76b49d3 100644
--- a/@commitlint/config-angular/index.js
+++ b/@commitlint/config-angular/index.js
@@ -8,8 +8,8 @@ module.exports = {
'scope-case': [2, 'always', 'lower-case'],
'subject-case': [
2,
- 'always',
- ['camel-case', 'kebab-case', 'lower-case', 'snake-case']
+ 'never',
+ ['sentence-case', 'start-case', 'pascal-case', 'upper-case']
],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
diff --git a/@commitlint/config-angular/license.md b/@commitlint/config-angular/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@commitlint/config-angular/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@commitlint/config-angular/package.json b/@commitlint/config-angular/package.json
index fb3d94ea8c..431b911b15 100644
--- a/@commitlint/config-angular/package.json
+++ b/@commitlint/config-angular/package.json
@@ -1,6 +1,6 @@
{
"name": "@commitlint/config-angular",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Shareable commitlint config enforcing the angular commit convention",
"files": [
"index.js"
@@ -9,14 +9,12 @@
"clean": "exit 0",
"deps": "dep-check",
"pkg": "pkg-check --skip-import",
- "lint": "xo",
"start": "exit 0",
"test": "exit 0"
},
- "xo": false,
"repository": {
"type": "git",
- "url": "git+https://github.com/marionebl/commitlint.git"
+ "url": "git+https://github.com/conventional-changelog/commitlint.git"
},
"keywords": [
"conventional-changelog",
@@ -27,13 +25,13 @@
"author": "Mario Nebl ",
"license": "MIT",
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"devDependencies": {
- "@commitlint/utils": "^7.0.0"
+ "@commitlint/utils": "^7.5.0"
},
"dependencies": {
- "@commitlint/config-angular-type-enum": "^7.0.0"
+ "@commitlint/config-angular-type-enum": "^7.5.0"
}
}
diff --git a/@commitlint/config-conventional/CHANGELOG.md b/@commitlint/config-conventional/CHANGELOG.md
index 7a8d42fcdf..dd498aa160 100644
--- a/@commitlint/config-conventional/CHANGELOG.md
+++ b/@commitlint/config-conventional/CHANGELOG.md
@@ -3,8 +3,53 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* all broken website references ([#564](https://github.com/conventional-changelog/commitlint/issues/564)) ([82eeb5a](https://github.com/conventional-changelog/commitlint/commit/82eeb5a))
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+* replace all website references with conventional changelog ([#563](https://github.com/conventional-changelog/commitlint/issues/563)) ([6b86fb1](https://github.com/conventional-changelog/commitlint/commit/6b86fb1))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/config-conventional
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/config-conventional
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/config-conventional
+
+
+# [7.1.0](https://github.com/conventional-changelog/commitlint/compare/v7.0.1...v7.1.0) (2018-08-29)
+
+
+
+
+**Note:** Version bump only for package @commitlint/config-conventional
+
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
@@ -12,7 +57,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-conventional
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
@@ -20,7 +65,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-conventional
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
@@ -28,7 +73,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-conventional
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
@@ -36,7 +81,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-conventional
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
@@ -44,7 +89,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-conventional
-## [5.2.3](https://github.com/marionebl/commitlint/compare/v5.2.2...v5.2.3) (2017-12-05)
+## [5.2.3](https://github.com/conventional-changelog/commitlint/compare/v5.2.2...v5.2.3) (2017-12-05)
@@ -52,36 +97,36 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-conventional
-## [5.1.3](https://github.com/marionebl/commitlint/compare/v5.1.2...v5.1.3) (2017-11-24)
+## [5.1.3](https://github.com/conventional-changelog/commitlint/compare/v5.1.2...v5.1.3) (2017-11-24)
### Bug Fixes
-* **config-conventional:** add missing applicable attribute to type-enum ([a8db0b1](https://github.com/marionebl/commitlint/commit/a8db0b1))
+* **config-conventional:** add missing applicable attribute to type-enum ([a8db0b1](https://github.com/conventional-changelog/commitlint/commit/a8db0b1))
-## [5.1.1](https://github.com/marionebl/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
+## [5.1.1](https://github.com/conventional-changelog/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
### Bug Fixes
-* set access for npm ([8aeaec2](https://github.com/marionebl/commitlint/commit/8aeaec2))
+* set access for npm ([8aeaec2](https://github.com/conventional-changelog/commitlint/commit/8aeaec2))
-# [5.1.0](https://github.com/marionebl/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
+# [5.1.0](https://github.com/conventional-changelog/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
### Bug Fixes
-* **config-conventional:** remove unneeded dependency ([d0e62fd](https://github.com/marionebl/commitlint/commit/d0e62fd))
+* **config-conventional:** remove unneeded dependency ([d0e62fd](https://github.com/conventional-changelog/commitlint/commit/d0e62fd))
### Features
-* add conventional-changelog package ([8bb0a85](https://github.com/marionebl/commitlint/commit/8bb0a85))
+* add conventional-changelog package ([8bb0a85](https://github.com/conventional-changelog/commitlint/commit/8bb0a85))
diff --git a/@commitlint/config-conventional/README.md b/@commitlint/config-conventional/README.md
index 58e019e285..2ea5a669b4 100644
--- a/@commitlint/config-conventional/README.md
+++ b/@commitlint/config-conventional/README.md
@@ -2,12 +2,12 @@
# @commitlint/config-conventional
-Shareable `commitlint` config enforcing [convention commits](https://conventionalcommits.org/).
-Use with [@commitlint/cli](../cli) and [@commitlint/prompt-cli](../prompt-cli).
+Shareable `commitlint` config enforcing [conventional commits](https://conventionalcommits.org/).
+Use with [@commitlint/cli](https://npm.im/@commitlint/cli) and [@commitlint/prompt-cli](https://npm.im/@commitlint/prompt-cli).
| :warning: | |
|:-------:|--|
-| **IMPORTANT** | This is a direct replacement for [@commitlint/config-angular](../config-angular) prior to version 4. `config-angular` diverged from the conventional commit convention as of version 5. See [#146](https://github.com/marionebl/commitlint/issues/146) for details. |
+| **IMPORTANT** | This is a direct replacement for [@commitlint/config-angular](https://npm.im/@commitlint/config-angular) prior to version 4. `config-angular` diverged from the conventional commit convention as of version 5. See [#146](https://github.com/conventional-changelog/commitlint/issues/146) for details. |
## Getting started
@@ -21,7 +21,7 @@ echo "module.exports = {extends: ['@commitlint/config-conventional']};" > commit
The following rules are considered problems for `@commitlint/config-conventional` and will yield a non-zero exit code when not met.
-Consult [docs/rules](http://marionebl.github.io/commitlint/#/reference-rules) for a list of available rules.
+Consult [docs/rules](https://conventional-changelog.github.io/commitlint/#/reference-rules) for a list of available rules.
#### type-enum
diff --git a/@commitlint/config-conventional/index.js b/@commitlint/config-conventional/index.js
index 4c81835a00..f26ad5a57f 100644
--- a/@commitlint/config-conventional/index.js
+++ b/@commitlint/config-conventional/index.js
@@ -6,8 +6,8 @@ module.exports = {
'scope-case': [2, 'always', 'lower-case'],
'subject-case': [
2,
- 'always',
- ['camel-case', 'kebab-case', 'lower-case', 'snake-case']
+ 'never',
+ ['sentence-case', 'start-case', 'pascal-case', 'upper-case']
],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
diff --git a/@commitlint/config-conventional/license.md b/@commitlint/config-conventional/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@commitlint/config-conventional/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@commitlint/config-conventional/package.json b/@commitlint/config-conventional/package.json
index ac75f9d131..ad1641b249 100644
--- a/@commitlint/config-conventional/package.json
+++ b/@commitlint/config-conventional/package.json
@@ -1,6 +1,6 @@
{
"name": "@commitlint/config-conventional",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Shareable commitlint config enforcing conventional commits",
"files": [
"index.js"
@@ -9,17 +9,15 @@
"clean": "exit 0",
"deps": "dep-check",
"pkg": "pkg-check",
- "lint": "xo",
"start": "exit 0",
"test": "exit 0"
},
- "xo": false,
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
- "url": "git+https://github.com/marionebl/commitlint.git"
+ "url": "git+https://github.com/conventional-changelog/commitlint.git"
},
"keywords": [
"conventional-changelog",
@@ -30,10 +28,10 @@
"author": "Mario Nebl ",
"license": "MIT",
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"devDependencies": {
- "@commitlint/utils": "^7.0.0"
+ "@commitlint/utils": "^7.5.0"
}
}
diff --git a/@commitlint/config-lerna-scopes/CHANGELOG.md b/@commitlint/config-lerna-scopes/CHANGELOG.md
index 9a75bdc5a9..1fed81df31 100644
--- a/@commitlint/config-lerna-scopes/CHANGELOG.md
+++ b/@commitlint/config-lerna-scopes/CHANGELOG.md
@@ -3,8 +3,53 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* all broken website references ([#564](https://github.com/conventional-changelog/commitlint/issues/564)) ([82eeb5a](https://github.com/conventional-changelog/commitlint/commit/82eeb5a))
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+* replace all website references with conventional changelog ([#563](https://github.com/conventional-changelog/commitlint/issues/563)) ([6b86fb1](https://github.com/conventional-changelog/commitlint/commit/6b86fb1))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/config-lerna-scopes
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/config-lerna-scopes
+
+
+## [7.2.1](https://github.com/conventional-changelog/commitlint/compare/v7.2.0...v7.2.1) (2018-10-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/config-lerna-scopes
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/config-lerna-scopes
+
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
@@ -12,7 +57,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-lerna-scopes
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
@@ -20,7 +65,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-lerna-scopes
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
@@ -28,7 +73,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-lerna-scopes
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
@@ -36,7 +81,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-lerna-scopes
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
@@ -44,7 +89,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-lerna-scopes
-# [6.0.0](https://github.com/marionebl/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
+# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
@@ -52,7 +97,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-lerna-scopes
-## [5.2.6](https://github.com/marionebl/commitlint/compare/v5.2.5...v5.2.6) (2017-12-21)
+## [5.2.6](https://github.com/conventional-changelog/commitlint/compare/v5.2.5...v5.2.6) (2017-12-21)
@@ -60,7 +105,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-lerna-scopes
-# [5.2.0](https://github.com/marionebl/commitlint/compare/v5.1.3...v5.2.0) (2017-11-30)
+# [5.2.0](https://github.com/conventional-changelog/commitlint/compare/v5.1.3...v5.2.0) (2017-11-30)
@@ -68,7 +113,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-lerna-scopes
-## [5.1.1](https://github.com/marionebl/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
+## [5.1.1](https://github.com/conventional-changelog/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
@@ -76,18 +121,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-lerna-scopes
-# [5.1.0](https://github.com/marionebl/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
+# [5.1.0](https://github.com/conventional-changelog/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
### Features
-* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/marionebl/commitlint/commit/3e6e6a8))
+* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/conventional-changelog/commitlint/commit/3e6e6a8))
-## [5.0.1](https://github.com/marionebl/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
+## [5.0.1](https://github.com/conventional-changelog/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
@@ -95,7 +140,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-lerna-scopes
-# [4.3.0](https://github.com/marionebl/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
+# [4.3.0](https://github.com/conventional-changelog/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
@@ -103,7 +148,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-lerna-scopes
-## [4.2.1](https://github.com/marionebl/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
+## [4.2.1](https://github.com/conventional-changelog/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
@@ -111,7 +156,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-lerna-scopes
-# [4.2.0](https://github.com/marionebl/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
+# [4.2.0](https://github.com/conventional-changelog/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
@@ -119,12 +164,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-lerna-scopes
-## [4.1.1](https://github.com/marionebl/commitlint/compare/v4.1.0...v4.1.1) (2017-10-09)
+## [4.1.1](https://github.com/conventional-changelog/commitlint/compare/v4.1.0...v4.1.1) (2017-10-09)
### Bug Fixes
-* **config-lerna-scopes:** fix package list get with recent lerna versions ([8f35dae](https://github.com/marionebl/commitlint/commit/8f35dae))
+* **config-lerna-scopes:** fix package list get with recent lerna versions ([8f35dae](https://github.com/conventional-changelog/commitlint/commit/8f35dae))
@@ -145,7 +190,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* **config-lerna-scopes:** support non-standard lerna repos ([71fc40e](https://github.com/marionebl/commitlint/commit/71fc40e))
+* **config-lerna-scopes:** support non-standard lerna repos ([71fc40e](https://github.com/conventional-changelog/commitlint/commit/71fc40e))
@@ -161,7 +206,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* **config-lerna-scopes:** support non-standard lerna repos ([71fc40e](https://github.com/marionebl/commitlint/commit/71fc40e))
+* **config-lerna-scopes:** support non-standard lerna repos ([71fc40e](https://github.com/conventional-changelog/commitlint/commit/71fc40e))
@@ -172,7 +217,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* **config-lerna-scopes:** support non-standard lerna repos ([71fc40e](https://github.com/marionebl/commitlint/commit/71fc40e))
+* **config-lerna-scopes:** support non-standard lerna repos ([71fc40e](https://github.com/conventional-changelog/commitlint/commit/71fc40e))
@@ -183,7 +228,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* **config-lerna-scopes:** support non-standard lerna repos ([71fc40e](https://github.com/marionebl/commitlint/commit/71fc40e))
+* **config-lerna-scopes:** support non-standard lerna repos ([71fc40e](https://github.com/conventional-changelog/commitlint/commit/71fc40e))
@@ -194,4 +239,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* **config-lerna-scopes:** support non-standard lerna repos ([903df4b](https://github.com/marionebl/commitlint/commit/903df4b))
+* **config-lerna-scopes:** support non-standard lerna repos ([903df4b](https://github.com/conventional-changelog/commitlint/commit/903df4b))
diff --git a/@commitlint/config-lerna-scopes/fixtures/basic/lerna.json b/@commitlint/config-lerna-scopes/fixtures/basic/lerna.json
index 1b1247feb0..7d013836f6 100644
--- a/@commitlint/config-lerna-scopes/fixtures/basic/lerna.json
+++ b/@commitlint/config-lerna-scopes/fixtures/basic/lerna.json
@@ -1,5 +1,5 @@
{
- "lerna": "2.0.0",
+ "lerna": "3.2.1",
"version": "1.0.0",
"packages": [
"packages/*"
diff --git a/@commitlint/config-lerna-scopes/fixtures/basic/package.json b/@commitlint/config-lerna-scopes/fixtures/basic/package.json
index d96e12dcef..df1afe37b6 100644
--- a/@commitlint/config-lerna-scopes/fixtures/basic/package.json
+++ b/@commitlint/config-lerna-scopes/fixtures/basic/package.json
@@ -2,6 +2,6 @@
"name": "basic",
"version": "1.0.0",
"devDependencies": {
- "lerna": "2.9.0"
+ "lerna": "3.2.1"
}
}
diff --git a/@commitlint/config-lerna-scopes/fixtures/empty/lerna.json b/@commitlint/config-lerna-scopes/fixtures/empty/lerna.json
index 1b1247feb0..7d013836f6 100644
--- a/@commitlint/config-lerna-scopes/fixtures/empty/lerna.json
+++ b/@commitlint/config-lerna-scopes/fixtures/empty/lerna.json
@@ -1,5 +1,5 @@
{
- "lerna": "2.0.0",
+ "lerna": "3.2.1",
"version": "1.0.0",
"packages": [
"packages/*"
diff --git a/@commitlint/config-lerna-scopes/fixtures/empty/package.json b/@commitlint/config-lerna-scopes/fixtures/empty/package.json
index e0b95dc648..3bd81ae7fc 100644
--- a/@commitlint/config-lerna-scopes/fixtures/empty/package.json
+++ b/@commitlint/config-lerna-scopes/fixtures/empty/package.json
@@ -2,6 +2,6 @@
"name": "empty",
"version": "1.0.0",
"devDependencies": {
- "lerna": "2.9.0"
+ "lerna": "3.2.1"
}
}
diff --git a/@commitlint/config-lerna-scopes/fixtures/lerna-2.0/lerna.json b/@commitlint/config-lerna-scopes/fixtures/lerna-2.0/lerna.json
deleted file mode 100644
index 1b1247feb0..0000000000
--- a/@commitlint/config-lerna-scopes/fixtures/lerna-2.0/lerna.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "lerna": "2.0.0",
- "version": "1.0.0",
- "packages": [
- "packages/*"
- ]
-}
diff --git a/@commitlint/config-lerna-scopes/fixtures/lerna-2.0/package.json b/@commitlint/config-lerna-scopes/fixtures/lerna-2.0/package.json
deleted file mode 100644
index 09543e4d4e..0000000000
--- a/@commitlint/config-lerna-scopes/fixtures/lerna-2.0/package.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "lerna-2-0",
- "version": "1.0.0",
- "devDependencies": {
- "lerna": "2.9.0"
- }
-}
diff --git a/@commitlint/config-lerna-scopes/fixtures/lerna-2.0/packages/a/package.json b/@commitlint/config-lerna-scopes/fixtures/lerna-2.0/packages/a/package.json
deleted file mode 100644
index 5693ad0511..0000000000
--- a/@commitlint/config-lerna-scopes/fixtures/lerna-2.0/packages/a/package.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "name": "a",
- "version": "1.0.0"
-}
diff --git a/@commitlint/config-lerna-scopes/fixtures/lerna-2.0/packages/b/package.json b/@commitlint/config-lerna-scopes/fixtures/lerna-2.0/packages/b/package.json
deleted file mode 100644
index e63566ecae..0000000000
--- a/@commitlint/config-lerna-scopes/fixtures/lerna-2.0/packages/b/package.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "name": "b",
- "version": "1.0.0"
-}
diff --git a/@commitlint/config-lerna-scopes/fixtures/lerna-2.4/package.json b/@commitlint/config-lerna-scopes/fixtures/lerna-2.4/package.json
deleted file mode 100644
index 17b6441acd..0000000000
--- a/@commitlint/config-lerna-scopes/fixtures/lerna-2.4/package.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "lerna-2-4",
- "version": "1.0.0",
- "devDependencies": {
- "lerna": "2.9.0"
- }
-}
diff --git a/@commitlint/config-lerna-scopes/fixtures/lerna-2.4/packages/a/package.json b/@commitlint/config-lerna-scopes/fixtures/lerna-2.4/packages/a/package.json
deleted file mode 100644
index 5693ad0511..0000000000
--- a/@commitlint/config-lerna-scopes/fixtures/lerna-2.4/packages/a/package.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "name": "a",
- "version": "1.0.0"
-}
diff --git a/@commitlint/config-lerna-scopes/fixtures/lerna-2.4/packages/b/package.json b/@commitlint/config-lerna-scopes/fixtures/lerna-2.4/packages/b/package.json
deleted file mode 100644
index e63566ecae..0000000000
--- a/@commitlint/config-lerna-scopes/fixtures/lerna-2.4/packages/b/package.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "name": "b",
- "version": "1.0.0"
-}
diff --git a/@commitlint/config-lerna-scopes/fixtures/lerna-2.4/lerna.json b/@commitlint/config-lerna-scopes/fixtures/lerna-two/lerna.json
similarity index 100%
rename from @commitlint/config-lerna-scopes/fixtures/lerna-2.4/lerna.json
rename to @commitlint/config-lerna-scopes/fixtures/lerna-two/lerna.json
diff --git a/@commitlint/config-lerna-scopes/fixtures/version-mismatch/package.json b/@commitlint/config-lerna-scopes/fixtures/lerna-two/package.json
similarity index 78%
rename from @commitlint/config-lerna-scopes/fixtures/version-mismatch/package.json
rename to @commitlint/config-lerna-scopes/fixtures/lerna-two/package.json
index ed26095d9e..b77252c876 100644
--- a/@commitlint/config-lerna-scopes/fixtures/version-mismatch/package.json
+++ b/@commitlint/config-lerna-scopes/fixtures/lerna-two/package.json
@@ -2,6 +2,6 @@
"name": "version-mismatch",
"version": "1.0.0",
"devDependencies": {
- "lerna": "2.9.0"
+ "lerna": "2.4.0"
}
}
diff --git a/@commitlint/config-lerna-scopes/fixtures/scoped/lerna.json b/@commitlint/config-lerna-scopes/fixtures/scoped/lerna.json
index 07390d2f95..4fec852f4c 100644
--- a/@commitlint/config-lerna-scopes/fixtures/scoped/lerna.json
+++ b/@commitlint/config-lerna-scopes/fixtures/scoped/lerna.json
@@ -1,5 +1,5 @@
{
- "lerna": "2.0.0",
+ "lerna": "3.2.1",
"version": "1.0.0",
"packages": [
"@packages/*"
diff --git a/@commitlint/config-lerna-scopes/fixtures/scoped/package.json b/@commitlint/config-lerna-scopes/fixtures/scoped/package.json
index 5cbefd5f35..c7d238811b 100644
--- a/@commitlint/config-lerna-scopes/fixtures/scoped/package.json
+++ b/@commitlint/config-lerna-scopes/fixtures/scoped/package.json
@@ -2,6 +2,6 @@
"name": "scoped",
"version": "1.0.0",
"devDependencies": {
- "lerna": "2.9.0"
+ "lerna": "3.2.1"
}
}
diff --git a/@commitlint/config-lerna-scopes/fixtures/version-mismatch/lerna.json b/@commitlint/config-lerna-scopes/fixtures/version-mismatch/lerna.json
deleted file mode 100644
index 91353a207e..0000000000
--- a/@commitlint/config-lerna-scopes/fixtures/version-mismatch/lerna.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "lerna": "2.4.0",
- "version": "1.0.0",
- "packages": [
- "packages/*"
- ]
-}
diff --git a/@commitlint/config-lerna-scopes/index.js b/@commitlint/config-lerna-scopes/index.js
index ffc3cb0370..9a9a780255 100644
--- a/@commitlint/config-lerna-scopes/index.js
+++ b/@commitlint/config-lerna-scopes/index.js
@@ -1,26 +1,45 @@
+const Path = require('path');
const importFrom = require('import-from');
+const resolvePkg = require('resolve-pkg');
+const semver = require('semver');
module.exports = {
utils: {getPackages},
rules: {
- 'scope-enum': ctx => [2, 'always', getPackages(ctx)]
+ 'scope-enum': ctx =>
+ getPackages(ctx).then(packages => [2, 'always', packages])
}
};
function getPackages(context) {
- const ctx = context || {};
- const cwd = ctx.cwd || process.cwd();
+ return Promise.resolve()
+ .then(() => {
+ const ctx = context || {};
+ const cwd = ctx.cwd || process.cwd();
+ const lernaVersion = getLernaVersion(cwd);
- const Repository = importFrom(cwd, 'lerna/lib/Repository');
- const PackageUtilities = importFrom(cwd, 'lerna/lib/PackageUtilities');
+ if (semver.lt(lernaVersion, '3.0.0')) {
+ const Repository = importFrom(cwd, 'lerna/lib/Repository');
+ const PackageUtilities = importFrom(cwd, 'lerna/lib/PackageUtilities');
- const repository = new Repository(cwd);
- const packages = PackageUtilities.getPackages({
- packageConfigs: repository.packageConfigs,
- rootPath: cwd
- });
+ const repository = new Repository(cwd);
+ return PackageUtilities.getPackages({
+ packageConfigs: repository.packageConfigs,
+ rootPath: cwd
+ });
+ }
- return packages
- .map(pkg => pkg.name)
- .map(name => (name.charAt(0) === '@' ? name.split('/')[1] : name));
+ const Project = importFrom(cwd, '@lerna/project');
+ const project = new Project(cwd);
+ return project.getPackages();
+ })
+ .then(packages => {
+ return packages
+ .map(pkg => pkg.name)
+ .map(name => (name.charAt(0) === '@' ? name.split('/')[1] : name));
+ });
+}
+
+function getLernaVersion(cwd) {
+ return require(Path.join(resolvePkg('lerna', {cwd}), 'package.json')).version;
}
diff --git a/@commitlint/config-lerna-scopes/license.md b/@commitlint/config-lerna-scopes/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@commitlint/config-lerna-scopes/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@commitlint/config-lerna-scopes/package.json b/@commitlint/config-lerna-scopes/package.json
index cbb39c4ce9..c5341f5ca3 100644
--- a/@commitlint/config-lerna-scopes/package.json
+++ b/@commitlint/config-lerna-scopes/package.json
@@ -1,19 +1,17 @@
{
"name": "@commitlint/config-lerna-scopes",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Shareable commitlint config enforcing lerna package names as scopes",
"files": [
"index.js"
],
"scripts": {
"clean": "exit 0",
- "lint": "xo",
"start": "ava --watch --verbose",
"test": "ava --verbose",
"deps": "dep-check",
"pkg": "pkg-check"
},
- "xo": false,
"ava": {
"files": [
"test.js"
@@ -25,7 +23,7 @@
},
"repository": {
"type": "git",
- "url": "git+https://github.com/marionebl/commitlint.git"
+ "url": "git+https://github.com/conventional-changelog/commitlint.git"
},
"keywords": [
"conventional-changelog",
@@ -36,17 +34,22 @@
"author": "Mario Nebl ",
"license": "MIT",
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
+ },
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
+ "peerDependencies": {
+ "lerna": "^3.0.0"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
"dependencies": {
"import-from": "2.1.0",
- "lerna": "2.9.0"
+ "resolve-pkg": "1.0.0",
+ "semver": "5.6.0"
},
"devDependencies": {
- "@commitlint/test": "^7.0.0",
- "@commitlint/utils": "^7.0.0",
+ "@commitlint/test": "^7.5.0",
+ "@commitlint/utils": "^7.5.0",
+ "@lerna/project": "3.5.0",
"ava": "0.22.0",
- "xo": "0.20.3"
+ "lerna": "3.1.1"
}
}
diff --git a/@commitlint/config-lerna-scopes/readme.md b/@commitlint/config-lerna-scopes/readme.md
index 262ed45ff4..c06db1343f 100644
--- a/@commitlint/config-lerna-scopes/readme.md
+++ b/@commitlint/config-lerna-scopes/readme.md
@@ -40,4 +40,4 @@ packages
✔ found 0 problems, 0 warnings
```
-Consult [docs/rules](http://marionebl.github.io/commitlint/#/reference-rules) for a list of available rules.
+Consult [docs/rules](https://conventional-changelog.github.io/commitlint/#/reference-rules) for a list of available rules.
diff --git a/@commitlint/config-lerna-scopes/test.js b/@commitlint/config-lerna-scopes/test.js
index 30126e0655..9a8aa6035c 100644
--- a/@commitlint/config-lerna-scopes/test.js
+++ b/@commitlint/config-lerna-scopes/test.js
@@ -19,63 +19,51 @@ test('scope-enum is function', t => {
t.is(typeof fn, 'function');
});
-test('scope-enum does not throw for missing context', t => {
+test('scope-enum does not throw for missing context', async t => {
const {'scope-enum': fn} = config.rules;
- t.notThrows(() => fn());
+ try {
+ await fn();
+ t.pass();
+ } catch (err) {
+ t.fail();
+ }
});
-test('scope-enum has expected severity', t => {
+test('scope-enum has expected severity', async t => {
const {'scope-enum': fn} = config.rules;
- const [severity] = fn();
+ const [severity] = await fn();
t.is(severity, 2);
});
-test('scope-enum has expected modifier', t => {
+test('scope-enum has expected modifier', async t => {
const {'scope-enum': fn} = config.rules;
- const [, modifier] = fn();
+ const [, modifier] = await fn();
t.is(modifier, 'always');
});
test('returns empty value for empty lerna repository', async t => {
const {'scope-enum': fn} = config.rules;
const cwd = await npm.bootstrap('fixtures/empty');
- const [, , value] = fn({cwd});
+ const [, , value] = await fn({cwd});
t.deepEqual(value, []);
});
test('returns expected value for basic lerna repository', async t => {
const {'scope-enum': fn} = config.rules;
const cwd = await npm.bootstrap('fixtures/basic');
- const [, , value] = fn({cwd});
+ const [, , value] = await fn({cwd});
t.deepEqual(value, ['a', 'b']);
});
-test.failing(
- 'throws for repository with .lerna vs .devDependencies.lerna mismatch',
- async t => {
- const {'scope-enum': fn} = config.rules;
- const cwd = await npm.bootstrap('fixtures/version-mismatch');
- await t.throws(() => fn({cwd}));
- }
-);
-
test('returns expected value for scoped lerna repository', async t => {
const {'scope-enum': fn} = config.rules;
const cwd = await npm.bootstrap('fixtures/scoped');
- const [, , value] = fn({cwd});
- t.deepEqual(value, ['a', 'b']);
-});
-
-test('works with lerna 2.0', async t => {
- const {'scope-enum': fn} = config.rules;
- const cwd = await npm.bootstrap('fixtures/lerna-2.4');
- const [, , value] = fn({cwd});
+ const [, , value] = await fn({cwd});
t.deepEqual(value, ['a', 'b']);
});
-test('works with lerna 2.4', async t => {
+test('works with lerna version < 3', async t => {
const {'scope-enum': fn} = config.rules;
- const cwd = await npm.bootstrap('fixtures/lerna-2.4');
- const [, , value] = fn({cwd});
- t.deepEqual(value, ['a', 'b']);
+ const cwd = await npm.bootstrap('fixtures/lerna-two');
+ await t.notThrows(async () => fn({cwd}));
});
diff --git a/@commitlint/config-patternplate/CHANGELOG.md b/@commitlint/config-patternplate/CHANGELOG.md
index e5036a1383..2a0bf8914a 100644
--- a/@commitlint/config-patternplate/CHANGELOG.md
+++ b/@commitlint/config-patternplate/CHANGELOG.md
@@ -3,8 +3,48 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* all broken website references ([#564](https://github.com/conventional-changelog/commitlint/issues/564)) ([82eeb5a](https://github.com/conventional-changelog/commitlint/commit/82eeb5a))
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+* replace all website references with conventional changelog ([#563](https://github.com/conventional-changelog/commitlint/issues/563)) ([6b86fb1](https://github.com/conventional-changelog/commitlint/commit/6b86fb1))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/config-patternplate
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+### Bug Fixes
+
+* update to security-patched dependency versions ([97c033b](https://github.com/conventional-changelog/commitlint/commit/97c033b))
+
+
+
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/config-patternplate
+
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
@@ -12,7 +52,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-patternplate
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
@@ -20,7 +60,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-patternplate
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
@@ -28,7 +68,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-patternplate
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
@@ -36,7 +76,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-patternplate
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
@@ -44,7 +84,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-patternplate
-# [6.0.0](https://github.com/marionebl/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
+# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
@@ -52,7 +92,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-patternplate
-## [5.1.1](https://github.com/marionebl/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
+## [5.1.1](https://github.com/conventional-changelog/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
@@ -60,18 +100,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-patternplate
-# [5.1.0](https://github.com/marionebl/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
+# [5.1.0](https://github.com/conventional-changelog/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
### Features
-* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/marionebl/commitlint/commit/3e6e6a8))
+* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/conventional-changelog/commitlint/commit/3e6e6a8))
-## [5.0.1](https://github.com/marionebl/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
+## [5.0.1](https://github.com/conventional-changelog/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
@@ -79,7 +119,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-patternplate
-# [4.3.0](https://github.com/marionebl/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
+# [4.3.0](https://github.com/conventional-changelog/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
@@ -87,7 +127,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-patternplate
-## [4.2.1](https://github.com/marionebl/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
+## [4.2.1](https://github.com/conventional-changelog/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
@@ -95,7 +135,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/config-patternplate
-# [4.2.0](https://github.com/marionebl/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
+# [4.2.0](https://github.com/conventional-changelog/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
diff --git a/@commitlint/config-patternplate/README.md b/@commitlint/config-patternplate/README.md
index aa17ff87fa..cccc35be42 100644
--- a/@commitlint/config-patternplate/README.md
+++ b/@commitlint/config-patternplate/README.md
@@ -22,4 +22,4 @@ The following rules are considered problems for `@commitlint/config-patterplate`
* **rule**: `always`
* **value**: determined based on pattern tree. `system` and all pattern ids present in `patterns` are allowed
-Consult [docs/rules](http://marionebl.github.io/commitlint/#/reference-rules) for a list of available rules.
+Consult [docs/rules](https://conventional-changelog.github.io/commitlint/#/reference-rules) for a list of available rules.
diff --git a/@commitlint/config-patternplate/index.js b/@commitlint/config-patternplate/index.js
index 4acd11e98e..8bb07cac52 100644
--- a/@commitlint/config-patternplate/index.js
+++ b/@commitlint/config-patternplate/index.js
@@ -1,6 +1,6 @@
const path = require('path');
const globby = require('globby');
-const merge = require('lodash.merge');
+const {merge} = require('lodash');
function pathToId(root, filePath) {
const relativePath = path.relative(root, filePath);
diff --git a/@commitlint/config-patternplate/license.md b/@commitlint/config-patternplate/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@commitlint/config-patternplate/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@commitlint/config-patternplate/package.json b/@commitlint/config-patternplate/package.json
index 8d368543df..4cf271447b 100644
--- a/@commitlint/config-patternplate/package.json
+++ b/@commitlint/config-patternplate/package.json
@@ -1,6 +1,6 @@
{
"name": "@commitlint/config-patternplate",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Lint your commits, patternplate-style",
"files": [
"index.js"
@@ -9,14 +9,12 @@
"clean": "exit 0",
"deps": "dep-check",
"pkg": "pkg-check --skip-import",
- "lint": "xo",
"start": "exit 0",
"test": "exit 0"
},
- "xo": false,
"repository": {
"type": "git",
- "url": "git+https://github.com/marionebl/commitlint.git"
+ "url": "git+https://github.com/conventional-changelog/commitlint.git"
},
"keywords": [
"conventional-changelog",
@@ -27,16 +25,15 @@
"author": "Mario Nebl ",
"license": "MIT",
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"dependencies": {
- "@commitlint/config-angular": "^7.0.0",
+ "@commitlint/config-angular": "^7.5.0",
"globby": "8.0.1",
- "lodash.merge": "4.6.1"
+ "lodash": "4.17.11"
},
"devDependencies": {
- "@commitlint/utils": "^7.0.0",
- "xo": "0.20.3"
+ "@commitlint/utils": "^7.5.0"
}
}
diff --git a/@commitlint/core/CHANGELOG.md b/@commitlint/core/CHANGELOG.md
index fac9b62c21..9fba8c65ee 100644
--- a/@commitlint/core/CHANGELOG.md
+++ b/@commitlint/core/CHANGELOG.md
@@ -3,8 +3,83 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+
+
+
+
+
+# [7.4.0](https://github.com/conventional-changelog/commitlint/compare/v7.3.2...v7.4.0) (2019-01-27)
+
+
+
+
+**Note:** Version bump only for package @commitlint/core
+
+
+## [7.3.2](https://github.com/conventional-changelog/commitlint/compare/v7.3.1...v7.3.2) (2019-01-15)
+
+
+
+
+**Note:** Version bump only for package @commitlint/core
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/core
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/core
+
+
+## [7.2.1](https://github.com/conventional-changelog/commitlint/compare/v7.2.0...v7.2.1) (2018-10-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/core
+
+
+# [7.2.0](https://github.com/conventional-changelog/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05)
+
+
+
+
+**Note:** Version bump only for package @commitlint/core
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/core
+
+
+# [7.1.0](https://github.com/conventional-changelog/commitlint/compare/v7.0.1...v7.1.0) (2018-08-29)
+
+
+
+
+**Note:** Version bump only for package @commitlint/core
+
-# [6.2.0](https://github.com/marionebl/commitlint/compare/v6.1.3...v6.2.0) (2018-05-01)
+# [6.2.0](https://github.com/conventional-changelog/commitlint/compare/v6.1.3...v6.2.0) (2018-05-01)
@@ -12,7 +87,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/core
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
diff --git a/@commitlint/core/license.md b/@commitlint/core/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@commitlint/core/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@commitlint/core/package.json b/@commitlint/core/package.json
index 39b1a1afba..f6ef3ec109 100644
--- a/@commitlint/core/package.json
+++ b/@commitlint/core/package.json
@@ -1,27 +1,25 @@
{
"name": "@commitlint/core",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Lint your commit messages",
"files": [
"index.js"
],
"scripts": {
"deps": "dep-check",
- "pkg": "pkg-check --skip-import",
- "lint": "xo"
+ "pkg": "pkg-check --skip-import"
},
- "xo": false,
"engines": {
"node": ">=4"
},
"repository": {
"type": "git",
- "url": "https://github.com/marionebl/commitlint.git"
+ "url": "https://github.com/conventional-changelog/commitlint.git"
},
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"keywords": [
"conventional-changelog",
"commitlint",
@@ -33,13 +31,10 @@
"email": "hello@herebecode.com"
},
"license": "MIT",
- "devDependencies": {
- "xo": "0.20.3"
- },
"dependencies": {
- "@commitlint/format": "^7.0.0",
- "@commitlint/lint": "^7.0.0",
- "@commitlint/load": "^7.0.0",
- "@commitlint/read": "^7.0.0"
+ "@commitlint/format": "^7.5.0",
+ "@commitlint/lint": "^7.5.0",
+ "@commitlint/load": "^7.5.0",
+ "@commitlint/read": "^7.5.0"
}
}
diff --git a/@commitlint/ensure/CHANGELOG.md b/@commitlint/ensure/CHANGELOG.md
index 492dd49180..eddd62a01d 100644
--- a/@commitlint/ensure/CHANGELOG.md
+++ b/@commitlint/ensure/CHANGELOG.md
@@ -3,19 +3,82 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* `sentence-case` allow upper-case characters in first word ([#531](https://github.com/conventional-changelog/commitlint/issues/531)) ([5a6a4a8](https://github.com/conventional-changelog/commitlint/commit/5a6a4a8)), closes [#211](https://github.com/conventional-changelog/commitlint/issues/211)
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+* slash in scope [#291](https://github.com/conventional-changelog/commitlint/issues/291) ([#529](https://github.com/conventional-changelog/commitlint/issues/529)) ([b2b63e5](https://github.com/conventional-changelog/commitlint/commit/b2b63e5))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/ensure
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+### Bug Fixes
+
+* fall back to conventional commit-parser settings for missing keys ([#496](https://github.com/conventional-changelog/commitlint/issues/496)) ([831a141](https://github.com/conventional-changelog/commitlint/commit/831a141)), closes [#399](https://github.com/conventional-changelog/commitlint/issues/399)
+* update to security-patched dependency versions ([97c033b](https://github.com/conventional-changelog/commitlint/commit/97c033b))
+
+
+
+
+
+# [7.2.0](https://github.com/conventional-changelog/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05)
+
+
+### Bug Fixes
+
+* handle case rules for numerics correctly ([cadcfed](https://github.com/conventional-changelog/commitlint/commit/cadcfed))
+
+
+
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/ensure
+
+
+# [7.1.0](https://github.com/conventional-changelog/commitlint/compare/v7.0.1...v7.1.0) (2018-08-29)
+
+
+### Features
+
+* add max line length to body/footer ([542f50e](https://github.com/conventional-changelog/commitlint/commit/542f50e))
+
+
+
+
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
### Bug Fixes
-* **ensure:** ignore word delimiters for case matching [#291](https://github.com/marionebl/commitlint/issues/291) ([fa69299](https://github.com/marionebl/commitlint/commit/fa69299))
+* **ensure:** ignore word delimiters for case matching [#291](https://github.com/conventional-changelog/commitlint/issues/291) ([fa69299](https://github.com/conventional-changelog/commitlint/commit/fa69299))
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
@@ -23,7 +86,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/ensure
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
@@ -31,7 +94,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/ensure
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
@@ -39,7 +102,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/ensure
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
@@ -47,9 +110,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/ensure
-# [6.0.0](https://github.com/marionebl/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
+# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
### Bug Fixes
-* sanitize ensure.case [#211](https://github.com/marionebl/commitlint/issues/211) ([#217](https://github.com/marionebl/commitlint/issues/217)) ([03aeefc](https://github.com/marionebl/commitlint/commit/03aeefc))
+* sanitize ensure.case [#211](https://github.com/conventional-changelog/commitlint/issues/211) ([#217](https://github.com/conventional-changelog/commitlint/issues/217)) ([03aeefc](https://github.com/conventional-changelog/commitlint/commit/03aeefc))
diff --git a/@commitlint/ensure/license.md b/@commitlint/ensure/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@commitlint/ensure/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@commitlint/ensure/package.json b/@commitlint/ensure/package.json
index 66bb418e47..e73f4c914d 100644
--- a/@commitlint/ensure/package.json
+++ b/@commitlint/ensure/package.json
@@ -1,6 +1,6 @@
{
"name": "@commitlint/ensure",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Lint your commit messages",
"main": "lib/index.js",
"files": [
@@ -11,7 +11,6 @@
"clean": "npx rimraf lib",
"deps": "dep-check",
"pkg": "pkg-check --skip-import",
- "lint": "xo",
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
"test": "ava -c 4 --verbose",
"watch": "babel src --out-dir lib --watch --source-maps"
@@ -35,18 +34,17 @@
"babel-preset-commitlint"
]
},
- "xo": false,
"engines": {
"node": ">=4"
},
"repository": {
"type": "git",
- "url": "https://github.com/marionebl/commitlint.git"
+ "url": "https://github.com/conventional-changelog/commitlint.git"
},
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"keywords": [
"conventional-changelog",
"commitlint",
@@ -59,24 +57,18 @@
},
"license": "MIT",
"devDependencies": {
- "@commitlint/test": "^7.0.0",
- "@commitlint/utils": "^7.0.0",
+ "@commitlint/test": "^7.5.0",
+ "@commitlint/utils": "^7.5.0",
"ava": "0.22.0",
"babel-cli": "6.26.0",
- "babel-preset-commitlint": "^7.0.0",
+ "babel-preset-commitlint": "^7.5.0",
"babel-register": "6.26.0",
"concurrently": "3.5.1",
"cross-env": "5.1.1",
"globby": "8.0.1",
- "lodash.values": "4.3.0",
- "rimraf": "2.6.1",
- "xo": "0.20.3"
+ "rimraf": "2.6.1"
},
"dependencies": {
- "lodash.camelcase": "4.3.0",
- "lodash.kebabcase": "4.1.1",
- "lodash.snakecase": "4.1.1",
- "lodash.startcase": "4.4.0",
- "lodash.upperfirst": "4.3.1"
+ "lodash": "4.17.11"
}
}
diff --git a/@commitlint/ensure/src/case.js b/@commitlint/ensure/src/case.js
index cd0341aff9..6de9e889b2 100644
--- a/@commitlint/ensure/src/case.js
+++ b/@commitlint/ensure/src/case.js
@@ -1,8 +1,4 @@
-import camelCase from 'lodash.camelcase';
-import kebabCase from 'lodash.kebabcase';
-import snakeCase from 'lodash.snakecase';
-import upperFirst from 'lodash.upperfirst';
-import startCase from 'lodash.startcase';
+import * as _ from 'lodash';
export default ensureCase;
@@ -12,9 +8,16 @@ function ensureCase(raw = '', target = 'lowercase') {
const input = String(raw)
.replace(/`.*?`|".*?"|'.*?'/g, '')
.trim();
- const transformed = toCase(input, target);
- if (transformed === '') {
+ const delimiters = /(\/|\\)/g;
+ const transformed = input
+ .split(delimiters)
+ .map(segment =>
+ delimiters.test(segment) ? segment : toCase(segment, target)
+ )
+ .join('');
+
+ if (transformed === '' || transformed.match(/^\d/)) {
return true;
}
@@ -24,26 +27,21 @@ function ensureCase(raw = '', target = 'lowercase') {
function toCase(input, target) {
switch (target) {
case 'camel-case':
- return camelCase(input);
+ return _.camelCase(input);
case 'kebab-case':
- return kebabCase(input);
+ return _.kebabCase(input);
case 'snake-case':
- return snakeCase(input);
+ return _.snakeCase(input);
case 'pascal-case':
- return upperFirst(camelCase(input));
+ return _.upperFirst(_.camelCase(input));
case 'start-case':
- return startCase(input);
+ return _.startCase(input);
case 'upper-case':
case 'uppercase':
return input.toUpperCase();
case 'sentence-case':
- case 'sentencecase': {
- const word = input.split(' ')[0];
- return `${toCase(word.charAt(0), 'upper-case')}${toCase(
- word.slice(1),
- 'lower-case'
- )}${input.slice(word.length)}`;
- }
+ case 'sentencecase':
+ return input.charAt(0).toUpperCase() + input.slice(1);
case 'lower-case':
case 'lowercase':
case 'lowerCase': // Backwards compat config-angular v4
diff --git a/@commitlint/ensure/src/case.test.js b/@commitlint/ensure/src/case.test.js
index d8592766b5..b3e1cb04a2 100644
--- a/@commitlint/ensure/src/case.test.js
+++ b/@commitlint/ensure/src/case.test.js
@@ -61,16 +61,16 @@ test('false for lowercase on sentencecase', t => {
t.is(ensure('sentence case', 'sentence-case'), false);
});
-test('false for UPPERCASE on sentencecase', t => {
- t.is(ensure('UPPERCASE', 'sentence-case'), false);
+test('true for UPPERCASE on sentencecase', t => {
+ t.is(ensure('UPPERCASE', 'sentence-case'), true);
});
test('true for Start Case on sentencecase', t => {
t.is(ensure('Start Case', 'sentence-case'), true);
});
-test('false for PascalCase on sentencecase', t => {
- t.is(ensure('PascalCase', 'sentence-case'), false);
+test('true for PascalCase on sentencecase', t => {
+ t.is(ensure('PascalCase', 'sentence-case'), true);
});
test('false for kebab-case on sentencecase', t => {
@@ -110,6 +110,11 @@ test('true for * on pascal-case', t => {
t.is(actual, true);
});
+test('true for Modules/Graph on pascal-case', t => {
+ const actual = ensure('Modules/Graph', 'pascal-case');
+ t.is(actual, true);
+});
+
test('true for * on start-case', t => {
const actual = ensure('*', 'start-case');
t.is(actual, true);
@@ -291,3 +296,31 @@ test('false for `LOWERCASE on lowercase', t => {
const actual = ensure('`LOWERCASE', 'lowercase');
t.is(actual, false);
});
+
+test('true for numeric on camel-case', t => {
+ t.true(ensure('1.0.0', 'camel-case'));
+});
+
+test('true for numeric on kebab-case', t => {
+ t.true(ensure('1.0.0', 'kebab-case'));
+});
+
+test('true for numeric on snake-case', t => {
+ t.true(ensure('1.0.0', 'snake-case'));
+});
+
+test('true for numeric on pascal-case', t => {
+ t.true(ensure('1.0.0', 'pascal-case'));
+});
+
+test('true for numeric on uppercase', t => {
+ t.true(ensure('1.0.0', 'uppercase'));
+});
+
+test('true for numeric on sentencecase', t => {
+ t.true(ensure('1.0.0', 'sentencecase'));
+});
+
+test('true for numeric on lowercase', t => {
+ t.true(ensure('1.0.0', 'lowercase'));
+});
diff --git a/@commitlint/ensure/src/index.js b/@commitlint/ensure/src/index.js
index 5ec9b61f57..982e128525 100644
--- a/@commitlint/ensure/src/index.js
+++ b/@commitlint/ensure/src/index.js
@@ -1,9 +1,10 @@
import ensureCase from './case';
import ensureEnum from './enum';
import maxLength from './max-length';
+import maxLineLength from './max-line-length';
import minLength from './min-length';
import notEmpty from './not-empty';
export {ensureCase as case};
export {ensureEnum as enum};
-export {maxLength, minLength, notEmpty};
+export {maxLength, maxLineLength, minLength, notEmpty};
diff --git a/@commitlint/ensure/src/index.test.js b/@commitlint/ensure/src/index.test.js
index 6b6dd0d8ab..392279a4df 100644
--- a/@commitlint/ensure/src/index.test.js
+++ b/@commitlint/ensure/src/index.test.js
@@ -1,13 +1,12 @@
import path from 'path';
import test from 'ava';
import globby from 'globby';
-import camelCase from 'lodash.camelcase';
-import values from 'lodash.values';
+import {camelCase, values} from 'lodash';
import * as ensure from '.';
-test('exports all rules', async t => {
- const expected = (await glob('*.js')).map(f => camelCase(f));
- const actual = Object.keys(ensure);
+test('exports all checkers', async t => {
+ const expected = (await glob('*.js')).map(f => camelCase(f)).sort();
+ const actual = Object.keys(ensure).sort();
t.deepEqual(actual, expected);
});
diff --git a/@commitlint/ensure/src/max-line-length.js b/@commitlint/ensure/src/max-line-length.js
new file mode 100644
index 0000000000..81a8ae620a
--- /dev/null
+++ b/@commitlint/ensure/src/max-line-length.js
@@ -0,0 +1,5 @@
+import ensure from './max-length';
+
+export default (value, max) =>
+ typeof value === 'string' &&
+ value.split(/\r?\n/).every(line => ensure(line, max));
diff --git a/@commitlint/ensure/src/max-line-length.test.js b/@commitlint/ensure/src/max-line-length.test.js
new file mode 100644
index 0000000000..469fef7fb3
--- /dev/null
+++ b/@commitlint/ensure/src/max-line-length.test.js
@@ -0,0 +1,49 @@
+import test from 'ava';
+import ensure from './max-line-length';
+
+test('false for no params', t => {
+ const actual = ensure();
+ t.is(actual, false);
+});
+
+test('true for a against 1', t => {
+ const actual = ensure('a', 1);
+ t.is(actual, true);
+});
+
+test('false for ab against 0', t => {
+ const actual = ensure('a', 0);
+ t.is(actual, false);
+});
+
+test('true for a against 2', t => {
+ const actual = ensure('a', 2);
+ t.is(actual, true);
+});
+
+test('true for ab against 2', t => {
+ const actual = ensure('ab', 2);
+ t.is(actual, true);
+});
+
+test('false for ab/\nab/\nab 1', t => {
+ const actual = ensure(
+ `ab
+ab
+ab`,
+ 2
+ );
+
+ t.is(actual, true);
+});
+
+test('true for ab/\nab/\nab 2', t => {
+ const actual = ensure(
+ `ab
+ab
+ab`,
+ 2
+ );
+
+ t.is(actual, true);
+});
diff --git a/@commitlint/execute-rule/CHANGELOG.md b/@commitlint/execute-rule/CHANGELOG.md
index 9fb55758d7..f4af5182b9 100644
--- a/@commitlint/execute-rule/CHANGELOG.md
+++ b/@commitlint/execute-rule/CHANGELOG.md
@@ -3,8 +3,43 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/execute-rule
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/execute-rule
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/execute-rule
+
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
@@ -12,7 +47,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/execute-rule
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
@@ -20,7 +55,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/execute-rule
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
@@ -28,7 +63,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/execute-rule
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
@@ -36,7 +71,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/execute-rule
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
@@ -44,7 +79,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/execute-rule
-# [6.0.0](https://github.com/marionebl/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
+# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
diff --git a/@commitlint/execute-rule/license.md b/@commitlint/execute-rule/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@commitlint/execute-rule/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@commitlint/execute-rule/package.json b/@commitlint/execute-rule/package.json
index 02ec57490c..8fa4541777 100644
--- a/@commitlint/execute-rule/package.json
+++ b/@commitlint/execute-rule/package.json
@@ -1,6 +1,6 @@
{
"name": "@commitlint/execute-rule",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Lint your commit messages",
"main": "lib/index.js",
"files": [
@@ -11,7 +11,6 @@
"clean": "npx rimraf lib",
"deps": "dep-check",
"pkg": "pkg-check",
- "lint": "xo",
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
"test": "ava -c 4 --verbose",
"watch": "babel src --out-dir lib --watch --source-maps"
@@ -35,18 +34,17 @@
"babel-preset-commitlint"
]
},
- "xo": false,
"engines": {
"node": ">=4"
},
"repository": {
"type": "git",
- "url": "https://github.com/marionebl/commitlint.git"
+ "url": "https://github.com/conventional-changelog/commitlint.git"
},
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"keywords": [
"conventional-changelog",
"commitlint",
@@ -59,17 +57,16 @@
},
"license": "MIT",
"devDependencies": {
- "@commitlint/parse": "^7.0.0",
- "@commitlint/test": "^7.0.0",
- "@commitlint/utils": "^7.0.0",
+ "@commitlint/parse": "^7.5.0",
+ "@commitlint/test": "^7.5.0",
+ "@commitlint/utils": "^7.5.0",
"ava": "0.22.0",
"babel-cli": "6.26.0",
- "babel-preset-commitlint": "^7.0.0",
+ "babel-preset-commitlint": "^7.5.0",
"babel-register": "6.26.0",
"concurrently": "3.5.1",
"cross-env": "5.1.1",
- "rimraf": "2.6.1",
- "xo": "0.20.3"
+ "rimraf": "2.6.1"
},
"dependencies": {
"babel-runtime": "6.26.0"
diff --git a/@commitlint/format/CHANGELOG.md b/@commitlint/format/CHANGELOG.md
index 0b2f7d731e..8f3c2040e1 100644
--- a/@commitlint/format/CHANGELOG.md
+++ b/@commitlint/format/CHANGELOG.md
@@ -3,8 +3,77 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* all broken website references ([#564](https://github.com/conventional-changelog/commitlint/issues/564)) ([82eeb5a](https://github.com/conventional-changelog/commitlint/commit/82eeb5a))
+* cleanup message for input with no config ([#519](https://github.com/conventional-changelog/commitlint/issues/519)) ([7d9e760](https://github.com/conventional-changelog/commitlint/commit/7d9e760))
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+* replace all website references with conventional changelog ([#563](https://github.com/conventional-changelog/commitlint/issues/563)) ([6b86fb1](https://github.com/conventional-changelog/commitlint/commit/6b86fb1))
+
+
+
+
+
+# [7.4.0](https://github.com/conventional-changelog/commitlint/compare/v7.3.2...v7.4.0) (2019-01-27)
+
+
+### Bug Fixes
+
+* correction to need help link ([#540](https://github.com/conventional-changelog/commitlint/issues/540)) ([fa6168a](https://github.com/conventional-changelog/commitlint/commit/fa6168a))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/format
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+### Bug Fixes
+
+* **format:** add new line to result ([#518](https://github.com/conventional-changelog/commitlint/issues/518)) ([f1d443b](https://github.com/conventional-changelog/commitlint/commit/f1d443b)), closes [#504](https://github.com/conventional-changelog/commitlint/issues/504)
+* update to security-patched dependency versions ([97c033b](https://github.com/conventional-changelog/commitlint/commit/97c033b))
+
+
+
+
+
+## [7.2.1](https://github.com/conventional-changelog/commitlint/compare/v7.2.0...v7.2.1) (2018-10-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/format
+
+
+# [7.2.0](https://github.com/conventional-changelog/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05)
+
+
+
+
+**Note:** Version bump only for package @commitlint/format
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/format
+
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
diff --git a/@commitlint/format/README.md b/@commitlint/format/README.md
index 1a99e25dfa..bc1a398d9b 100644
--- a/@commitlint/format/README.md
+++ b/@commitlint/format/README.md
@@ -13,29 +13,44 @@ npm install --save @commitlint/format
```js
const format = require('@commitlint/format');
-format({
- warnings: [
+const output = format({
+ valid: false,
+ errorCount: 1,
+ warningCount: 1,
+ results: [
{
- level: 0,
- name: 'some-hint',
- message: 'This will not show up as it has level 0'
- },
- {
- level: 1,
- name: 'some-warning',
- message: 'This will show up yellow as it has level 1'
- }
- ],
- errors: [
- {
- level: 2,
- name: 'some-error',
- message: 'This will show up red as it has level 2'
+ valid: false,
+ input: 'some: commit message',
+ errors: [
+ {
+ valid: false,
+ level: 2,
+ name: 'some-error',
+ message: 'This will show up red as it has level 2'
+ }
+ ],
+ warnings: [
+ {
+ valid: true,
+ level: 0,
+ name: 'some-hint',
+ message: 'This will not show up as it has level 0'
+ },
+ {
+ valid: false,
+ level: 1,
+ name: 'some-warning',
+ message: 'This will show up yellow as it has level 1'
+ }
+ ]
}
- ]
+ ]
}, {
color: false
});
+
+process.stdout.write(output);
+
/* => [
'✖ This will show up red as it has level 2 [some-error]',
' This will not show up as it has level 0 [some-hint]',
@@ -44,4 +59,5 @@ format({
] */
```
-Consult [docs/api](http://marionebl.github.io/commitlint/#/reference-api) for comprehensive documentation.
+Consult [docs/api](https://conventional-changelog.github.io/commitlint/#/reference-api) for comprehensive documentation.
+
diff --git a/@commitlint/format/license.md b/@commitlint/format/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@commitlint/format/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@commitlint/format/package.json b/@commitlint/format/package.json
index 3f26b94d92..a948bd8255 100644
--- a/@commitlint/format/package.json
+++ b/@commitlint/format/package.json
@@ -1,6 +1,6 @@
{
"name": "@commitlint/format",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Format commitlint reports",
"main": "lib/index.js",
"files": [
@@ -11,7 +11,6 @@
"clean": "npx rimraf lib",
"deps": "dep-check",
"pkg": "pkg-check --skip-import",
- "lint": "xo",
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
"test": "ava -c 4 --verbose",
"watch": "babel src --out-dir lib --watch --source-maps"
@@ -35,18 +34,17 @@
"babel-preset-commitlint"
]
},
- "xo": false,
"engines": {
"node": ">=4"
},
"repository": {
"type": "git",
- "url": "https://github.com/marionebl/commitlint.git"
+ "url": "https://github.com/conventional-changelog/commitlint.git"
},
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"keywords": [
"conventional-changelog",
"commitlint",
@@ -59,17 +57,16 @@
},
"license": "MIT",
"devDependencies": {
- "@commitlint/test": "^7.0.0",
- "@commitlint/utils": "^7.0.0",
+ "@commitlint/test": "^7.5.0",
+ "@commitlint/utils": "^7.5.0",
"ava": "0.22.0",
"babel-cli": "6.26.0",
- "babel-preset-commitlint": "^7.0.0",
+ "babel-preset-commitlint": "^7.5.0",
"babel-register": "6.26.0",
"concurrently": "3.5.1",
"cross-env": "5.1.1",
- "lodash.includes": "4.3.0",
- "rimraf": "2.6.1",
- "xo": "0.20.3"
+ "lodash": "4.17.11",
+ "rimraf": "2.6.1"
},
"dependencies": {
"babel-runtime": "^6.23.0",
diff --git a/@commitlint/format/src/index.js b/@commitlint/format/src/index.js
index 1d76083b0e..b3dde9341b 100644
--- a/@commitlint/format/src/index.js
+++ b/@commitlint/format/src/index.js
@@ -4,12 +4,47 @@ const DEFAULT_SIGNS = [' ', '⚠', '✖'];
const DEFAULT_COLORS = ['white', 'yellow', 'red'];
export default function format(report = {}, options = {}) {
+ const {results = []} = report;
+
+ if (results.length > 0) {
+ return results
+ .map(
+ result =>
+ `${formatInput(result, options)}${formatResult(result, options).join(
+ '\n'
+ )}`
+ )
+ .join('\n');
+ }
+
+ // Output a summary when nothing is found
+ return formatResult({}, options).join('\n');
+}
+
+function formatInput(result = {}, options = {}) {
+ const {color: enabled = true} = options;
+ const {errors = [], input = ''} = result;
+
+ if (!input) {
+ return '';
+ }
+
+ const sign = '⧗';
+ const decoration = enabled ? chalk.gray(sign) : sign;
+ const commitText = errors.length > 0 ? input : input.split('\n')[0];
+
+ const decoratedInput = enabled ? chalk.bold(commitText) : commitText;
+
+ return `\n${decoration} input: ${decoratedInput}\n`;
+}
+
+function formatResult(result = {}, options = {}) {
const {
signs = DEFAULT_SIGNS,
colors = DEFAULT_COLORS,
color: enabled = true
} = options;
- const {errors = [], warnings = []} = report;
+ const {errors = [], warnings = []} = result;
const problems = [...errors, ...warnings].map(problem => {
const sign = signs[problem.level] || '';
@@ -27,20 +62,20 @@ export default function format(report = {}, options = {}) {
const decoration = enabled ? chalk[color](sign) : sign;
const summary = `${decoration} found ${errors.length} problems, ${
warnings.length
- } warnings`;
+ } warnings \n (Need help? -> https://github.com/conventional-changelog/commitlint#what-is-commitlint )\n\n`;
return [...problems, enabled ? chalk.bold(summary) : summary];
}
-function selectSign(report) {
- if (report.errors.length > 0) {
+function selectSign(result) {
+ if (result.errors.length > 0) {
return '✖';
}
- return report.warnings.length ? '⚠' : '✔';
+ return result.warnings.length ? '⚠' : '✔';
}
-function selectColor(report) {
- if (report.errors.length > 0) {
+function selectColor(result) {
+ if (result.errors.length > 0) {
return 'red';
}
- return report.warnings.length ? 'yellow' : 'green';
+ return result.warnings.length ? 'yellow' : 'green';
}
diff --git a/@commitlint/format/src/index.test.js b/@commitlint/format/src/index.test.js
index 1ec55ff7dc..428ac9f415 100644
--- a/@commitlint/format/src/index.test.js
+++ b/@commitlint/format/src/index.test.js
@@ -1,97 +1,146 @@
import test from 'ava';
import chalk from 'chalk';
-import includes from 'lodash.includes';
+import {includes} from 'lodash';
import format from '.';
-const ok = chalk.bold(`${chalk.green('✔')} found 0 problems, 0 warnings`);
+const ok = chalk.bold(
+ `${chalk.green(
+ '✔'
+ )} found 0 problems, 0 warnings \n (Need help? -> https://github.com/conventional-changelog/commitlint#what-is-commitlint )\n\n`
+);
test('does nothing without arguments', t => {
const actual = format();
- t.deepEqual(actual, [ok]);
+ t.deepEqual(actual, ok);
+});
+
+test('does nothing without report results', t => {
+ const actual = format({results: []});
+ t.deepEqual(actual, ok);
});
test('does nothing without .errors and .warnings', t => {
- const actual = format({});
- t.deepEqual(actual, [ok]);
+ const actual = format({results: [{}]});
+ t.deepEqual(actual, ok);
});
test('returns empty summary of problems for empty .errors and .warnings', t => {
- const [msg] = format({
- errors: [],
- warnings: []
+ const actual = format({
+ results: [
+ {
+ errors: [],
+ warnings: []
+ }
+ ]
});
- t.true(msg.includes('0 problems, 0 warnings'));
+ t.true(actual.includes('0 problems, 0 warnings'));
});
test('returns a correct of empty .errors and .warnings', t => {
- const [err, prob, msg] = format({
- errors: [
+ const actualError = format({
+ results: [
{
- level: 2,
- name: 'error-name',
- message: 'There was an error'
+ errors: [
+ {
+ level: 2,
+ name: 'error-name',
+ message: 'There was an error'
+ }
+ ]
}
- ],
- warnings: [
+ ]
+ });
+
+ const actualWarning = format({
+ results: [
{
- level: 1,
- name: 'warning-name',
- message: 'There was a problem'
+ warnings: [
+ {
+ level: 1,
+ name: 'warning-name',
+ message: 'There was a problem'
+ }
+ ]
}
]
});
- t.true(includes(err, 'There was an error'));
- t.true(includes(prob, 'There was a problem'));
- t.true(includes(msg, '1 problems, 1 warnings'));
+ t.true(includes(actualError, 'There was an error'));
+ t.true(includes(actualError, '1 problems, 0 warnings'));
+ t.true(includes(actualWarning, 'There was a problem'));
+ t.true(includes(actualWarning, '0 problems, 1 warnings'));
});
test('uses appropriate signs by default', t => {
- const [err, warn] = format({
- errors: [
+ const actualError = format({
+ results: [
{
- level: 2,
- name: 'error-name',
- message: 'There was an error'
+ errors: [
+ {
+ level: 2,
+ name: 'error-name',
+ message: 'There was an error'
+ }
+ ]
}
- ],
- warnings: [
+ ]
+ });
+
+ const actualWarning = format({
+ results: [
{
- level: 1,
- name: 'warning-name',
- message: 'There was a problem'
+ warnings: [
+ {
+ level: 1,
+ name: 'warning-name',
+ message: 'There was a problem'
+ }
+ ]
}
]
});
- t.true(includes(err, '✖'));
- t.true(includes(warn, '⚠'));
+ t.true(includes(actualError, '✖'));
+ t.true(includes(actualWarning, '⚠'));
});
test('uses signs as configured', t => {
- const [err, warn] = format(
+ const options = {signs: ['HNT', 'WRN', 'ERR']};
+ const actualError = format(
{
- errors: [
+ results: [
{
- level: 2,
- name: 'error-name',
- message: 'There was an error'
+ errors: [
+ {
+ level: 2,
+ name: 'error-name',
+ message: 'There was an error'
+ }
+ ]
}
- ],
- warnings: [
+ ]
+ },
+ options
+ );
+
+ const actualWarning = format(
+ {
+ results: [
{
- level: 1,
- name: 'warning-name',
- message: 'There was a problem'
+ warnings: [
+ {
+ level: 1,
+ name: 'warning-name',
+ message: 'There was a problem'
+ }
+ ]
}
]
},
- {
- signs: ['HNT', 'WRN', 'ERR']
- }
+ options
);
- t.true(includes(err, 'ERR'));
- t.true(includes(warn, 'WRN'));
+ t.true(includes(actualError, 'ERR'));
+ t.true(includes(actualWarning, 'WRN'));
});
diff --git a/@commitlint/is-ignored/CHANGELOG.md b/@commitlint/is-ignored/CHANGELOG.md
index 773d3a9e9b..da73041834 100644
--- a/@commitlint/is-ignored/CHANGELOG.md
+++ b/@commitlint/is-ignored/CHANGELOG.md
@@ -3,8 +3,74 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/is-ignored
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/is-ignored
+
+
+## [7.2.1](https://github.com/conventional-changelog/commitlint/compare/v7.2.0...v7.2.1) (2018-10-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/is-ignored
+
+
+# [7.2.0](https://github.com/conventional-changelog/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05)
+
+
+### Bug Fixes
+
+* ignore merge messages with text after newline ([b32bc93](https://github.com/conventional-changelog/commitlint/commit/b32bc93))
+* use grouped regex to ignore merge commits ([#439](https://github.com/conventional-changelog/commitlint/issues/439)) ([905e9d5](https://github.com/conventional-changelog/commitlint/commit/905e9d5))
+
+
+
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/is-ignored
+
+
+# [7.1.0](https://github.com/conventional-changelog/commitlint/compare/v7.0.1...v7.1.0) (2018-08-29)
+
+
+### Features
+
+* **wildcards:** add new wildcard patterns [#315](https://github.com/conventional-changelog/commitlint/issues/315) ([e9ea17f](https://github.com/conventional-changelog/commitlint/commit/e9ea17f))
+
+
+
+
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
@@ -12,7 +78,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/is-ignored
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
@@ -20,7 +86,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/is-ignored
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
@@ -28,31 +94,31 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/is-ignored
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
### Bug Fixes
-* update dependency semver to v5.5.0 ([#236](https://github.com/marionebl/commitlint/issues/236)) ([6c52bd9](https://github.com/marionebl/commitlint/commit/6c52bd9))
+* update dependency semver to v5.5.0 ([#236](https://github.com/conventional-changelog/commitlint/issues/236)) ([6c52bd9](https://github.com/conventional-changelog/commitlint/commit/6c52bd9))
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
### Bug Fixes
-* ignore branch merges with multiple newlines ([#227](https://github.com/marionebl/commitlint/issues/227)) ([1f0c5ca](https://github.com/marionebl/commitlint/commit/1f0c5ca))
+* ignore branch merges with multiple newlines ([#227](https://github.com/conventional-changelog/commitlint/issues/227)) ([1f0c5ca](https://github.com/conventional-changelog/commitlint/commit/1f0c5ca))
-# [6.0.0](https://github.com/marionebl/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
+# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
### Bug Fixes
-* ignore branch merges with newlines ([#214](https://github.com/marionebl/commitlint/issues/214)) ([c94c4dc](https://github.com/marionebl/commitlint/commit/c94c4dc))
+* ignore branch merges with newlines ([#214](https://github.com/conventional-changelog/commitlint/issues/214)) ([c94c4dc](https://github.com/conventional-changelog/commitlint/commit/c94c4dc))
diff --git a/@commitlint/is-ignored/license.md b/@commitlint/is-ignored/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@commitlint/is-ignored/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@commitlint/is-ignored/package.json b/@commitlint/is-ignored/package.json
index 0aa0e63074..7d12d5dbfd 100644
--- a/@commitlint/is-ignored/package.json
+++ b/@commitlint/is-ignored/package.json
@@ -1,6 +1,6 @@
{
"name": "@commitlint/is-ignored",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Lint your commit messages",
"main": "lib/index.js",
"files": [
@@ -11,7 +11,6 @@
"clean": "npx rimraf lib",
"deps": "dep-check",
"pkg": "pkg-check",
- "lint": "xo",
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
"test": "ava -c 4 --verbose",
"watch": "babel src --out-dir lib --watch --source-maps"
@@ -35,18 +34,17 @@
"babel-preset-commitlint"
]
},
- "xo": false,
"engines": {
"node": ">=4"
},
"repository": {
"type": "git",
- "url": "https://github.com/marionebl/commitlint.git"
+ "url": "https://github.com/conventional-changelog/commitlint.git"
},
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"keywords": [
"conventional-changelog",
"commitlint",
@@ -59,19 +57,18 @@
},
"license": "MIT",
"devDependencies": {
- "@commitlint/parse": "^7.0.0",
- "@commitlint/test": "^7.0.0",
- "@commitlint/utils": "^7.0.0",
+ "@commitlint/parse": "^7.5.0",
+ "@commitlint/test": "^7.5.0",
+ "@commitlint/utils": "^7.5.0",
"ava": "0.22.0",
"babel-cli": "6.26.0",
- "babel-preset-commitlint": "^7.0.0",
+ "babel-preset-commitlint": "^7.5.0",
"babel-register": "6.26.0",
"concurrently": "3.5.1",
"cross-env": "5.1.1",
- "rimraf": "2.6.1",
- "xo": "0.20.3"
+ "rimraf": "2.6.1"
},
"dependencies": {
- "semver": "5.5.0"
+ "semver": "5.6.0"
}
}
diff --git a/@commitlint/is-ignored/src/index.js b/@commitlint/is-ignored/src/index.js
index e21484a06c..e354701263 100644
--- a/@commitlint/is-ignored/src/index.js
+++ b/@commitlint/is-ignored/src/index.js
@@ -3,7 +3,7 @@ import semver from 'semver';
const WILDCARDS = [
c =>
c.match(
- /^(Merge pull request)|(Merge (.*?) into (.*?)|(Merge branch (.*?))(?:\r?\n)*$)/
+ /^((Merge pull request)|(Merge (.*?) into (.*?)|(Merge branch (.*?)))(?:\r?\n)*$)/m
),
c => c.match(/^(R|r)evert (.*)/),
c => c.match(/^(fixup|squash)!/),
@@ -16,6 +16,8 @@ const WILDCARDS = [
.trim()
),
c => c.match(/^Merged (.*?)(in|into) (.*)/),
+ c => c.match(/^Merge remote-tracking branch (.*)/),
+ c => c.match(/^Automatic merge from (.*)/),
c => c.match(/^Auto-merged (.*?) into (.*)/)
];
diff --git a/@commitlint/is-ignored/src/index.test.js b/@commitlint/is-ignored/src/index.test.js
index f20faef602..a5515da930 100644
--- a/@commitlint/is-ignored/src/index.test.js
+++ b/@commitlint/is-ignored/src/index.test.js
@@ -61,6 +61,11 @@ test('should return true for merged PRs', t => {
t.true(isIgnored('Merge pull request #369'));
});
+test('should return true for branch merges with newline characters and more characters after it', t => {
+ t.true(isIgnored("Merge branch 'ctrom-YarnBuild'\n "));
+ t.true(isIgnored("Merge branch 'ctrom-YarnBuild'\r\n # some comment"));
+});
+
test('should return true for revert commits', t => {
t.true(
isIgnored(
@@ -107,3 +112,7 @@ test('should return true for bitbucket merge commits', t => {
test('should return true for automatic merge commits', t => {
t.true(isIgnored('Auto-merged develop into master'));
});
+
+test('should return false for commits containing, but not starting, with merge branch', t => {
+ t.false(isIgnored('foo bar Merge branch xxx'));
+});
diff --git a/@commitlint/lint/CHANGELOG.md b/@commitlint/lint/CHANGELOG.md
index cd7c00b76e..dcaf5aa8f7 100644
--- a/@commitlint/lint/CHANGELOG.md
+++ b/@commitlint/lint/CHANGELOG.md
@@ -3,19 +3,102 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* all broken website references ([#564](https://github.com/conventional-changelog/commitlint/issues/564)) ([82eeb5a](https://github.com/conventional-changelog/commitlint/commit/82eeb5a))
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+* replace all website references with conventional changelog ([#563](https://github.com/conventional-changelog/commitlint/issues/563)) ([6b86fb1](https://github.com/conventional-changelog/commitlint/commit/6b86fb1))
+
+
+
+
+
+# [7.4.0](https://github.com/conventional-changelog/commitlint/compare/v7.3.2...v7.4.0) (2019-01-27)
+
+
+
+
+**Note:** Version bump only for package @commitlint/lint
+
+
+## [7.3.2](https://github.com/conventional-changelog/commitlint/compare/v7.3.1...v7.3.2) (2019-01-15)
+
+
+### Bug Fixes
+
+* move loadsh to dependencies ([1bb66a4](https://github.com/conventional-changelog/commitlint/commit/1bb66a4))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/lint
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+### Bug Fixes
+
+* update to security-patched dependency versions ([97c033b](https://github.com/conventional-changelog/commitlint/commit/97c033b))
+
+
+
+
+
+## [7.2.1](https://github.com/conventional-changelog/commitlint/compare/v7.2.0...v7.2.1) (2018-10-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/lint
+
+
+# [7.2.0](https://github.com/conventional-changelog/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05)
+
+
+
+
+**Note:** Version bump only for package @commitlint/lint
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/lint
+
+
+# [7.1.0](https://github.com/conventional-changelog/commitlint/compare/v7.0.1...v7.1.0) (2018-08-29)
+
+
+
+
+**Note:** Version bump only for package @commitlint/lint
+
-# [6.2.0](https://github.com/marionebl/commitlint/compare/v6.1.3...v6.2.0) (2018-05-01)
+# [6.2.0](https://github.com/conventional-changelog/commitlint/compare/v6.1.3...v6.2.0) (2018-05-01)
### Features
-* print commit message when the message is invalid ([86c34f1](https://github.com/marionebl/commitlint/commit/86c34f1)), closes [#222](https://github.com/marionebl/commitlint/issues/222)
+* print commit message when the message is invalid ([86c34f1](https://github.com/conventional-changelog/commitlint/commit/86c34f1)), closes [#222](https://github.com/conventional-changelog/commitlint/issues/222)
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
diff --git a/@commitlint/lint/README.md b/@commitlint/lint/README.md
index 509461c95e..66095d2d9a 100644
--- a/@commitlint/lint/README.md
+++ b/@commitlint/lint/README.md
@@ -30,4 +30,4 @@ lint('foo: bar', {'type-enum': [1, 'always', ['bar']]})
*/
```
-Consult [docs/api](http://marionebl.github.io/commitlint/#/reference-api) for comprehensive documentation.
+Consult [docs/api](https://conventional-changelog.github.io/commitlint/#/reference-api) for comprehensive documentation.
diff --git a/@commitlint/lint/license.md b/@commitlint/lint/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@commitlint/lint/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@commitlint/lint/package.json b/@commitlint/lint/package.json
index 7cff20992c..dad9ccc789 100644
--- a/@commitlint/lint/package.json
+++ b/@commitlint/lint/package.json
@@ -1,6 +1,6 @@
{
"name": "@commitlint/lint",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Lint a string against commitlint rules",
"main": "lib/index.js",
"files": [
@@ -11,7 +11,6 @@
"clean": "npx rimraf lib",
"deps": "dep-check",
"pkg": "pkg-check --skip-import",
- "lint": "xo",
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
"test": "ava -c 4 --verbose",
"watch": "babel src --out-dir lib --watch --source-maps"
@@ -35,18 +34,17 @@
"babel-preset-commitlint"
]
},
- "xo": false,
"engines": {
"node": ">=4"
},
"repository": {
"type": "git",
- "url": "https://github.com/marionebl/commitlint.git"
+ "url": "https://github.com/conventional-changelog/commitlint.git"
},
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"keywords": [
"conventional-changelog",
"commitlint",
@@ -59,25 +57,23 @@
},
"license": "MIT",
"devDependencies": {
- "@commitlint/test": "^7.0.0",
- "@commitlint/utils": "^7.0.0",
+ "@commitlint/test": "^7.5.0",
+ "@commitlint/utils": "^7.5.0",
"ava": "0.22.0",
"babel-cli": "6.26.0",
- "babel-preset-commitlint": "^7.0.0",
+ "babel-preset-commitlint": "^7.5.0",
"babel-register": "6.26.0",
"concurrently": "3.5.1",
"cross-env": "5.1.1",
"execa": "0.9.0",
"globby": "8.0.1",
- "lodash.includes": "4.3.0",
- "rimraf": "2.6.1",
- "xo": "0.20.3"
+ "rimraf": "2.6.1"
},
"dependencies": {
- "@commitlint/is-ignored": "^7.0.0",
- "@commitlint/parse": "^7.0.0",
- "@commitlint/rules": "^7.0.0",
+ "@commitlint/is-ignored": "^7.5.0",
+ "@commitlint/parse": "^7.5.0",
+ "@commitlint/rules": "^7.5.0",
"babel-runtime": "^6.23.0",
- "lodash.topairs": "4.3.0"
+ "lodash": "4.17.11"
}
}
diff --git a/@commitlint/lint/src/index.js b/@commitlint/lint/src/index.js
index e87027e3c6..2d2a0527e0 100644
--- a/@commitlint/lint/src/index.js
+++ b/@commitlint/lint/src/index.js
@@ -2,7 +2,7 @@ import util from 'util';
import isIgnored from '@commitlint/is-ignored';
import parse from '@commitlint/parse';
import implementations from '@commitlint/rules';
-import entries from 'lodash.topairs';
+import {toPairs} from 'lodash';
const buildCommitMesage = ({header, body, footer}) => {
let message = header;
@@ -35,13 +35,13 @@ export default async (message, rules = {}, opts = {}) => {
if (missing.length > 0) {
const names = Object.keys(implementations);
throw new RangeError(
- `Found missing rule names: ${missing.join(
+ `Found invalid rule names: ${missing.join(
', '
)}. Supported rule names are: ${names.join(', ')}`
);
}
- const invalid = entries(rules)
+ const invalid = toPairs(rules)
.map(([name, config]) => {
if (!Array.isArray(config)) {
return new Error(
@@ -106,9 +106,9 @@ export default async (message, rules = {}, opts = {}) => {
}
// Validate against all rules
- const results = entries(rules)
+ const results = toPairs(rules)
.filter(entry => {
- const [, [level]] = entry;
+ const [, [level]] = toPairs(entry);
return level > 0;
})
.map(entry => {
diff --git a/@commitlint/lint/src/index.test.js b/@commitlint/lint/src/index.test.js
index bdb6afa1f0..9152438b73 100644
--- a/@commitlint/lint/src/index.test.js
+++ b/@commitlint/lint/src/index.test.js
@@ -59,7 +59,7 @@ test('throws for invalid rule names', async t => {
lint('foo', {foo: [2, 'always'], bar: [1, 'never']})
);
- t.is(error.message.indexOf('Found missing rule names: foo, bar'), 0);
+ t.is(error.message.indexOf('Found invalid rule names: foo, bar'), 0);
});
test('throws for invalid rule config', async t => {
diff --git a/@commitlint/load/CHANGELOG.md b/@commitlint/load/CHANGELOG.md
index 66e7a904d8..269ab1e584 100644
--- a/@commitlint/load/CHANGELOG.md
+++ b/@commitlint/load/CHANGELOG.md
@@ -3,8 +3,75 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* all broken website references ([#564](https://github.com/conventional-changelog/commitlint/issues/564)) ([82eeb5a](https://github.com/conventional-changelog/commitlint/commit/82eeb5a))
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+* replace all website references with conventional changelog ([#563](https://github.com/conventional-changelog/commitlint/issues/563)) ([6b86fb1](https://github.com/conventional-changelog/commitlint/commit/6b86fb1))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/load
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+### Bug Fixes
+
+* update to security-patched dependency versions ([97c033b](https://github.com/conventional-changelog/commitlint/commit/97c033b))
+
+
+### Features
+
+* check stage before entering prompt ([#495](https://github.com/conventional-changelog/commitlint/issues/495)) ([3b3667a](https://github.com/conventional-changelog/commitlint/commit/3b3667a)), closes [#51](https://github.com/conventional-changelog/commitlint/issues/51) [#51](https://github.com/conventional-changelog/commitlint/issues/51)
+
+
+
+
+
+## [7.2.1](https://github.com/conventional-changelog/commitlint/compare/v7.2.0...v7.2.1) (2018-10-11)
+
+
+### Bug Fixes
+
+* improve format module resolving ([#464](https://github.com/conventional-changelog/commitlint/issues/464)) ([baed8b1](https://github.com/conventional-changelog/commitlint/commit/baed8b1))
+
+
+
+
+
+# [7.2.0](https://github.com/conventional-changelog/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05)
+
+
+### Features
+
+* **load:** add formatter option with default value ([b0e63d9](https://github.com/conventional-changelog/commitlint/commit/b0e63d9))
+
+
+
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/load
+
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
diff --git a/@commitlint/load/README.md b/@commitlint/load/README.md
index b94e8f0b63..b163d937a7 100644
--- a/@commitlint/load/README.md
+++ b/@commitlint/load/README.md
@@ -18,4 +18,4 @@ load({extends: ['./package']})
// => { extends: ['./package', './package-b'], rules: {} }
```
-Consult [docs/api](http://marionebl.github.io/commitlint/#/reference-api) for comprehensive documentation.
+Consult [docs/api](https://conventional-changelog.github.io/commitlint/#/reference-api) for comprehensive documentation.
diff --git a/@commitlint/load/fixtures/formatter-local-module/commitlint.config.js b/@commitlint/load/fixtures/formatter-local-module/commitlint.config.js
new file mode 100644
index 0000000000..1d62bb6ee7
--- /dev/null
+++ b/@commitlint/load/fixtures/formatter-local-module/commitlint.config.js
@@ -0,0 +1,3 @@
+module.exports = {
+ formatter: './formatters/custom.js'
+};
diff --git a/@commitlint/load/fixtures/formatter-local-module/formatters/custom.js b/@commitlint/load/fixtures/formatter-local-module/formatters/custom.js
new file mode 100644
index 0000000000..0b5f961820
--- /dev/null
+++ b/@commitlint/load/fixtures/formatter-local-module/formatters/custom.js
@@ -0,0 +1,3 @@
+module.exports = function(_report) {
+ return 'ok';
+};
diff --git a/@commitlint/load/fixtures/formatter/commitlint.config.js b/@commitlint/load/fixtures/formatter/commitlint.config.js
new file mode 100644
index 0000000000..b64abe9096
--- /dev/null
+++ b/@commitlint/load/fixtures/formatter/commitlint.config.js
@@ -0,0 +1,3 @@
+module.exports = {
+ formatter: 'commitlint-junit'
+};
diff --git a/@commitlint/load/license.md b/@commitlint/load/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@commitlint/load/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@commitlint/load/package.json b/@commitlint/load/package.json
index f31e8b6c11..506293a601 100644
--- a/@commitlint/load/package.json
+++ b/@commitlint/load/package.json
@@ -1,6 +1,6 @@
{
"name": "@commitlint/load",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Load shared commitlint configuration",
"main": "lib/index.js",
"files": [
@@ -11,7 +11,6 @@
"clean": "npx rimraf lib",
"deps": "dep-check",
"pkg": "pkg-check --skip-import",
- "lint": "xo",
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
"test": "ava -c 4 --verbose && ava \"src/*.serial-test.js\" --verbose",
"watch": "babel src --out-dir lib --watch --source-maps"
@@ -35,18 +34,17 @@
"babel-preset-commitlint"
]
},
- "xo": false,
"engines": {
"node": ">=4"
},
"repository": {
"type": "git",
- "url": "https://github.com/marionebl/commitlint.git"
+ "url": "https://github.com/conventional-changelog/commitlint.git"
},
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"keywords": [
"conventional-changelog",
"commitlint",
@@ -59,28 +57,24 @@
},
"license": "MIT",
"devDependencies": {
- "@commitlint/test": "^7.0.0",
- "@commitlint/utils": "^7.0.0",
+ "@commitlint/test": "^7.5.0",
+ "@commitlint/utils": "^7.5.0",
"ava": "0.22.0",
"babel-cli": "6.26.0",
- "babel-preset-commitlint": "^7.0.0",
+ "babel-preset-commitlint": "^7.5.0",
"babel-register": "6.26.0",
"concurrently": "3.5.1",
"cross-env": "5.1.1",
"execa": "0.9.0",
"globby": "8.0.1",
- "rimraf": "2.6.1",
- "xo": "0.20.3"
+ "rimraf": "2.6.1"
},
"dependencies": {
- "@commitlint/execute-rule": "^7.0.0",
- "@commitlint/resolve-extends": "^7.0.0",
+ "@commitlint/execute-rule": "^7.5.0",
+ "@commitlint/resolve-extends": "^7.5.0",
"babel-runtime": "^6.23.0",
"cosmiconfig": "^4.0.0",
- "lodash.merge": "4.6.1",
- "lodash.mergewith": "4.6.1",
- "lodash.pick": "4.4.0",
- "lodash.topairs": "4.3.0",
- "resolve-from": "4.0.0"
+ "lodash": "4.17.11",
+ "resolve-from": "^4.0.0"
}
}
diff --git a/@commitlint/load/src/index.js b/@commitlint/load/src/index.js
index c552902edb..bedf967d61 100644
--- a/@commitlint/load/src/index.js
+++ b/@commitlint/load/src/index.js
@@ -2,14 +2,12 @@ import path from 'path';
import executeRule from '@commitlint/execute-rule';
import resolveExtends from '@commitlint/resolve-extends';
import cosmiconfig from 'cosmiconfig';
-import entries from 'lodash.topairs';
-import merge from 'lodash.merge';
-import mergeWith from 'lodash.mergewith';
-import pick from 'lodash.pick';
+import {toPairs, merge, mergeWith, pick} from 'lodash';
import resolveFrom from 'resolve-from';
const w = (a, b) => (Array.isArray(b) ? b : undefined);
-const valid = input => pick(input, 'extends', 'rules', 'parserPreset');
+const valid = input =>
+ pick(input, 'extends', 'rules', 'parserPreset', 'formatter');
export default async (seed = {}, options = {cwd: process.cwd()}) => {
const loaded = await loadConfig(options.cwd, options.file);
@@ -17,7 +15,10 @@ export default async (seed = {}, options = {cwd: process.cwd()}) => {
// Merge passed config with file based options
const config = valid(merge(loaded.config, seed));
- const opts = merge({extends: [], rules: {}}, pick(config, 'extends'));
+ const opts = merge(
+ {extends: [], rules: {}, formatter: '@commitlint/format'},
+ pick(config, 'extends')
+ );
// Resolve parserPreset key
if (typeof config.parserPreset === 'string') {
@@ -48,6 +49,12 @@ export default async (seed = {}, options = {cwd: process.cwd()}) => {
.parserOpts).parserOpts;
}
+ // Resolve config-relative formatter module
+ if (typeof config.formatter === 'string') {
+ preset.formatter =
+ resolveFrom.silent(base, config.formatter) || config.formatter;
+ }
+
// Execute rule config functions if needed
const executed = await Promise.all(
['rules']
@@ -57,7 +64,7 @@ export default async (seed = {}, options = {cwd: process.cwd()}) => {
.map(async item => {
const [key, value] = item;
const executedValue = await Promise.all(
- entries(value || {}).map(entry => executeRule(entry))
+ toPairs(value || {}).map(entry => executeRule(entry))
);
return [
key,
diff --git a/@commitlint/load/src/index.test.js b/@commitlint/load/src/index.test.js
index f0386ee5b4..854fa0f3b2 100644
--- a/@commitlint/load/src/index.test.js
+++ b/@commitlint/load/src/index.test.js
@@ -1,6 +1,7 @@
import path from 'path';
import {fix, git} from '@commitlint/test';
import test from 'ava';
+import resolveFrom from 'resolve-from';
import load from '.';
@@ -58,6 +59,7 @@ test('respects cwd option', async t => {
const cwd = await git.bootstrap('fixtures/recursive-extends/first-extended');
const actual = await load({}, {cwd});
t.deepEqual(actual, {
+ formatter: '@commitlint/format',
extends: ['./second-extended'],
rules: {
one: 1,
@@ -70,6 +72,7 @@ test('recursive extends', async t => {
const cwd = await git.bootstrap('fixtures/recursive-extends');
const actual = await load({}, {cwd});
t.deepEqual(actual, {
+ formatter: '@commitlint/format',
extends: ['./first-extended'],
rules: {
zero: 0,
@@ -84,6 +87,7 @@ test('recursive extends with json file', async t => {
const actual = await load({}, {cwd});
t.deepEqual(actual, {
+ formatter: '@commitlint/format',
extends: ['./first-extended'],
rules: {
zero: 0,
@@ -98,6 +102,7 @@ test('recursive extends with yaml file', async t => {
const actual = await load({}, {cwd});
t.deepEqual(actual, {
+ formatter: '@commitlint/format',
extends: ['./first-extended'],
rules: {
zero: 0,
@@ -112,6 +117,7 @@ test('recursive extends with js file', async t => {
const actual = await load({}, {cwd});
t.deepEqual(actual, {
+ formatter: '@commitlint/format',
extends: ['./first-extended'],
rules: {
zero: 0,
@@ -126,6 +132,7 @@ test('recursive extends with package.json file', async t => {
const actual = await load({}, {cwd});
t.deepEqual(actual, {
+ formatter: '@commitlint/format',
extends: ['./first-extended'],
rules: {
zero: 0,
@@ -160,6 +167,7 @@ test('ignores unknow keys', async t => {
const actual = await load({}, {cwd});
t.deepEqual(actual, {
+ formatter: '@commitlint/format',
extends: [],
rules: {
foo: 'bar',
@@ -173,6 +181,7 @@ test('ignores unknow keys recursively', async t => {
const actual = await load({}, {cwd});
t.deepEqual(actual, {
+ formatter: '@commitlint/format',
extends: ['./one'],
rules: {
zero: 0,
@@ -189,6 +198,7 @@ test('find up from given cwd', async t => {
const actual = await load({}, {cwd});
t.deepEqual(actual, {
+ formatter: '@commitlint/format',
extends: [],
rules: {
child: true,
@@ -204,6 +214,7 @@ test('find up config from outside current git repo', async t => {
const actual = await load({}, {cwd});
t.deepEqual(actual, {
+ formatter: '@commitlint/format',
extends: [],
rules: {
child: false,
@@ -212,3 +223,36 @@ test('find up config from outside current git repo', async t => {
}
});
});
+
+test('respects formatter option', async t => {
+ const cwd = await git.bootstrap('fixtures/formatter');
+ const actual = await load({}, {cwd});
+
+ t.deepEqual(actual, {
+ formatter: 'commitlint-junit',
+ extends: [],
+ rules: {}
+ });
+});
+
+test('resolves formatter relative from config directory', async t => {
+ const cwd = await git.bootstrap('fixtures/formatter-local-module');
+ const actual = await load({}, {cwd});
+
+ t.deepEqual(actual, {
+ formatter: resolveFrom(cwd, './formatters/custom.js'),
+ extends: [],
+ rules: {}
+ });
+});
+
+test('returns formatter name when unable to resolve from config directory', async t => {
+ const cwd = await git.bootstrap('fixtures/formatter-local-module');
+ const actual = await load({formatter: './doesnt/exists.js'}, {cwd});
+
+ t.deepEqual(actual, {
+ formatter: './doesnt/exists.js',
+ extends: [],
+ rules: {}
+ });
+});
diff --git a/@commitlint/message/CHANGELOG.md b/@commitlint/message/CHANGELOG.md
index b3893e15ea..5621a457d1 100644
--- a/@commitlint/message/CHANGELOG.md
+++ b/@commitlint/message/CHANGELOG.md
@@ -3,8 +3,43 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/message
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/message
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/message
+
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
@@ -12,7 +47,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/message
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
@@ -20,7 +55,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/message
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
@@ -28,7 +63,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/message
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
@@ -36,7 +71,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/message
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
@@ -44,7 +79,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/message
-# [6.0.0](https://github.com/marionebl/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
+# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
diff --git a/@commitlint/message/license.md b/@commitlint/message/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@commitlint/message/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@commitlint/message/package.json b/@commitlint/message/package.json
index 9362e04a01..18cb1fae94 100644
--- a/@commitlint/message/package.json
+++ b/@commitlint/message/package.json
@@ -1,6 +1,6 @@
{
"name": "@commitlint/message",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Lint your commit messages",
"main": "lib/index.js",
"files": [
@@ -11,7 +11,6 @@
"clean": "npx rimraf lib",
"deps": "dep-check",
"pkg": "pkg-check",
- "lint": "xo",
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
"test": "ava -c 4 --verbose",
"watch": "babel src --out-dir lib --watch --source-maps"
@@ -35,18 +34,17 @@
"babel-preset-commitlint"
]
},
- "xo": false,
"engines": {
"node": ">=4"
},
"repository": {
"type": "git",
- "url": "https://github.com/marionebl/commitlint.git"
+ "url": "https://github.com/conventional-changelog/commitlint.git"
},
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"keywords": [
"conventional-changelog",
"commitlint",
@@ -59,15 +57,14 @@
},
"license": "MIT",
"devDependencies": {
- "@commitlint/test": "^7.0.0",
- "@commitlint/utils": "^7.0.0",
+ "@commitlint/test": "^7.5.0",
+ "@commitlint/utils": "^7.5.0",
"ava": "0.22.0",
"babel-cli": "6.26.0",
- "babel-preset-commitlint": "^7.0.0",
+ "babel-preset-commitlint": "^7.5.0",
"babel-register": "6.26.0",
"concurrently": "3.5.1",
"cross-env": "5.1.1",
- "rimraf": "2.6.1",
- "xo": "0.20.3"
+ "rimraf": "2.6.1"
}
}
diff --git a/@commitlint/parse/CHANGELOG.md b/@commitlint/parse/CHANGELOG.md
index 996aaa2240..aa21ec05a7 100644
--- a/@commitlint/parse/CHANGELOG.md
+++ b/@commitlint/parse/CHANGELOG.md
@@ -3,8 +3,47 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* mark optional parameter with undefined ([#553](https://github.com/conventional-changelog/commitlint/issues/553)) ([6720284](https://github.com/conventional-changelog/commitlint/commit/6720284))
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/parse
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+### Bug Fixes
+
+* fall back to conventional commit-parser settings for missing keys ([#496](https://github.com/conventional-changelog/commitlint/issues/496)) ([831a141](https://github.com/conventional-changelog/commitlint/commit/831a141)), closes [#399](https://github.com/conventional-changelog/commitlint/issues/399)
+
+
+
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/parse
+
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
@@ -12,18 +51,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/parse
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
### Bug Fixes
-* **parse:** default to angular preset for empty parserOpts ([#265](https://github.com/marionebl/commitlint/issues/265)) ([ccb03b4](https://github.com/marionebl/commitlint/commit/ccb03b4)), closes [#262](https://github.com/marionebl/commitlint/issues/262)
+* **parse:** default to angular preset for empty parserOpts ([#265](https://github.com/conventional-changelog/commitlint/issues/265)) ([ccb03b4](https://github.com/conventional-changelog/commitlint/commit/ccb03b4)), closes [#262](https://github.com/conventional-changelog/commitlint/issues/262)
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
@@ -31,7 +70,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/parse
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
@@ -39,7 +78,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/parse
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
@@ -47,7 +86,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/parse
-# [6.0.0](https://github.com/marionebl/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
+# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
diff --git a/@commitlint/parse/license.md b/@commitlint/parse/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@commitlint/parse/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@commitlint/parse/package.json b/@commitlint/parse/package.json
index 454e4cda1c..f730d89459 100644
--- a/@commitlint/parse/package.json
+++ b/@commitlint/parse/package.json
@@ -1,6 +1,6 @@
{
"name": "@commitlint/parse",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Lint your commit messages",
"main": "lib/index.js",
"files": [
@@ -11,7 +11,6 @@
"clean": "npx rimraf lib",
"deps": "dep-check",
"pkg": "pkg-check",
- "lint": "xo",
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
"test": "ava -c 4 --verbose",
"watch": "babel src --out-dir lib --watch --source-maps"
@@ -35,18 +34,17 @@
"babel-preset-commitlint"
]
},
- "xo": false,
"engines": {
"node": ">=4"
},
"repository": {
"type": "git",
- "url": "https://github.com/marionebl/commitlint.git"
+ "url": "https://github.com/conventional-changelog/commitlint.git"
},
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"keywords": [
"conventional-changelog",
"commitlint",
@@ -59,20 +57,20 @@
},
"license": "MIT",
"devDependencies": {
- "@commitlint/test": "^7.0.0",
- "@commitlint/utils": "^7.0.0",
+ "@commitlint/test": "^7.5.0",
+ "@commitlint/utils": "^7.5.0",
"ava": "0.22.0",
"babel-cli": "6.26.0",
- "babel-preset-commitlint": "^7.0.0",
+ "babel-preset-commitlint": "^7.5.0",
"babel-register": "6.26.0",
"concurrently": "3.5.1",
"cross-env": "5.1.1",
"import-from": "2.1.0",
- "rimraf": "2.6.1",
- "xo": "0.20.3"
+ "rimraf": "2.6.1"
},
"dependencies": {
"conventional-changelog-angular": "^1.3.3",
- "conventional-commits-parser": "^2.1.0"
+ "conventional-commits-parser": "^2.1.0",
+ "lodash": "^4.17.11"
}
}
diff --git a/@commitlint/parse/src/index.js b/@commitlint/parse/src/index.js
index 0c71d40e2f..dfb96f1dcb 100644
--- a/@commitlint/parse/src/index.js
+++ b/@commitlint/parse/src/index.js
@@ -1,15 +1,12 @@
import {sync} from 'conventional-commits-parser';
import defaultChangelogOpts from 'conventional-changelog-angular';
+import {merge} from 'lodash';
export default parse;
-async function parse(message, parser = sync, parserOpts) {
- if (!parserOpts || Object.keys(parserOpts || {}).length === 0) {
- const changelogOpts = await defaultChangelogOpts;
- parserOpts = changelogOpts.parserOpts;
- }
-
- const parsed = parser(message, parserOpts);
+async function parse(message, parser = sync, parserOpts = undefined) {
+ const defaultOpts = (await defaultChangelogOpts).parserOpts;
+ const parsed = parser(message, merge({}, defaultOpts, parserOpts));
parsed.raw = message;
return parsed;
}
diff --git a/@commitlint/parse/src/index.test.js b/@commitlint/parse/src/index.test.js
index 78d7aa7d73..1da6464b7f 100644
--- a/@commitlint/parse/src/index.test.js
+++ b/@commitlint/parse/src/index.test.js
@@ -118,7 +118,9 @@ test('ignores comments', async t => {
process.cwd(),
'conventional-changelog-angular'
);
- const opts = Object.assign({}, changelogOpts.parserOpts, {commentChar: '#'});
+ const opts = Object.assign({}, changelogOpts.parserOpts, {
+ commentChar: '#'
+ });
const actual = await parse(message, undefined, opts);
t.is(actual.body, null);
t.is(actual.footer, null);
@@ -132,7 +134,9 @@ test('registers inline #', async t => {
process.cwd(),
'conventional-changelog-angular'
);
- const opts = Object.assign({}, changelogOpts.parserOpts, {commentChar: '#'});
+ const opts = Object.assign({}, changelogOpts.parserOpts, {
+ commentChar: '#'
+ });
const actual = await parse(message, undefined, opts);
t.is(actual.subject, 'subject #reference');
t.is(actual.body, 'things #reference');
@@ -144,7 +148,9 @@ test('parses references leading subject', async t => {
process.cwd(),
'conventional-changelog-angular'
);
- const {references: [actual]} = await parse(message, undefined, opts);
+ const {
+ references: [actual]
+ } = await parse(message, undefined, opts);
t.is(actual.issue, '1');
});
@@ -164,3 +170,45 @@ test('parses custom references', async t => {
repository: null
});
});
+
+test('uses permissive default regex without parser opts', async t => {
+ const message = 'chore(component,demo): bump';
+ const actual = await parse(message);
+
+ t.is(actual.scope, 'component,demo');
+});
+
+test('uses permissive default regex with other parser opts', async t => {
+ const message = 'chore(component,demo): bump';
+ const actual = await parse(message, undefined, {commentChar: '#'});
+
+ t.is(actual.scope, 'component,demo');
+});
+
+test('uses restrictive default regex in passed parser opts', async t => {
+ const message = 'chore(component,demo): bump';
+ const actual = await parse(message, undefined, {
+ headerPattern: /^(\w*)(?:\(([a-z]*)\))?: (.*)$/
+ });
+
+ t.is(actual.subject, null);
+ t.is(actual.scope, null);
+});
+
+test('works with chinese scope by default', async t => {
+ const message = 'fix(面试评价): 测试';
+ const actual = await parse(message, undefined, {commentChar: '#'});
+
+ t.not(actual.subject, null);
+ t.not(actual.scope, null);
+});
+
+test('does not work with chinese scopes with incompatible pattern', async t => {
+ const message = 'fix(面试评价): 测试';
+ const actual = await parse(message, undefined, {
+ headerPattern: /^(\w*)(?:\(([a-z]*)\))?: (.*)$/
+ });
+
+ t.is(actual.subject, null);
+ t.is(actual.scope, null);
+});
diff --git a/@commitlint/prompt-cli/CHANGELOG.md b/@commitlint/prompt-cli/CHANGELOG.md
index c9ee2d1c4b..67efa4f641 100644
--- a/@commitlint/prompt-cli/CHANGELOG.md
+++ b/@commitlint/prompt-cli/CHANGELOG.md
@@ -3,8 +3,64 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* all broken website references ([#564](https://github.com/conventional-changelog/commitlint/issues/564)) ([82eeb5a](https://github.com/conventional-changelog/commitlint/commit/82eeb5a))
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+* replace all website references with conventional changelog ([#563](https://github.com/conventional-changelog/commitlint/issues/563)) ([6b86fb1](https://github.com/conventional-changelog/commitlint/commit/6b86fb1))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/prompt-cli
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+### Features
+
+* check stage before entering prompt ([#495](https://github.com/conventional-changelog/commitlint/issues/495)) ([3b3667a](https://github.com/conventional-changelog/commitlint/commit/3b3667a)), closes [#51](https://github.com/conventional-changelog/commitlint/issues/51) [#51](https://github.com/conventional-changelog/commitlint/issues/51)
+
+
+
+
+
+## [7.2.1](https://github.com/conventional-changelog/commitlint/compare/v7.2.0...v7.2.1) (2018-10-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/prompt-cli
+
+
+# [7.2.0](https://github.com/conventional-changelog/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05)
+
+
+
+
+**Note:** Version bump only for package @commitlint/prompt-cli
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/prompt-cli
+
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
@@ -12,7 +68,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt-cli
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
@@ -20,7 +76,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt-cli
-## [6.0.5](https://github.com/marionebl/commitlint/compare/v6.0.4...v6.0.5) (2018-01-31)
+## [6.0.5](https://github.com/conventional-changelog/commitlint/compare/v6.0.4...v6.0.5) (2018-01-31)
@@ -28,7 +84,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt-cli
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
@@ -36,7 +92,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt-cli
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
@@ -44,7 +100,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt-cli
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
@@ -52,7 +108,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt-cli
-## [6.0.1](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.1) (2018-01-09)
+## [6.0.1](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.1) (2018-01-09)
@@ -60,7 +116,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt-cli
-# [6.0.0](https://github.com/marionebl/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
+# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
@@ -68,7 +124,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt-cli
-## [5.2.6](https://github.com/marionebl/commitlint/compare/v5.2.5...v5.2.6) (2017-12-21)
+## [5.2.6](https://github.com/conventional-changelog/commitlint/compare/v5.2.5...v5.2.6) (2017-12-21)
@@ -76,7 +132,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt-cli
-## [5.2.5](https://github.com/marionebl/commitlint/compare/v5.2.4...v5.2.5) (2017-12-08)
+## [5.2.5](https://github.com/conventional-changelog/commitlint/compare/v5.2.4...v5.2.5) (2017-12-08)
@@ -84,7 +140,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt-cli
-## [5.2.4](https://github.com/marionebl/commitlint/compare/v5.2.3...v5.2.4) (2017-12-08)
+## [5.2.4](https://github.com/conventional-changelog/commitlint/compare/v5.2.3...v5.2.4) (2017-12-08)
@@ -92,7 +148,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt-cli
-# [5.2.0](https://github.com/marionebl/commitlint/compare/v5.1.3...v5.2.0) (2017-11-30)
+# [5.2.0](https://github.com/conventional-changelog/commitlint/compare/v5.1.3...v5.2.0) (2017-11-30)
@@ -100,7 +156,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt-cli
-## [5.1.2](https://github.com/marionebl/commitlint/compare/v5.1.1...v5.1.2) (2017-11-24)
+## [5.1.2](https://github.com/conventional-changelog/commitlint/compare/v5.1.1...v5.1.2) (2017-11-24)
@@ -108,7 +164,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt-cli
-## [5.1.1](https://github.com/marionebl/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
+## [5.1.1](https://github.com/conventional-changelog/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
@@ -116,18 +172,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt-cli
-# [5.1.0](https://github.com/marionebl/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
+# [5.1.0](https://github.com/conventional-changelog/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
### Features
-* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/marionebl/commitlint/commit/3e6e6a8))
+* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/conventional-changelog/commitlint/commit/3e6e6a8))
-## [5.0.1](https://github.com/marionebl/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
+## [5.0.1](https://github.com/conventional-changelog/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
@@ -135,7 +191,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt-cli
-# [4.3.0](https://github.com/marionebl/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
+# [4.3.0](https://github.com/conventional-changelog/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
@@ -143,7 +199,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt-cli
-## [4.2.2](https://github.com/marionebl/commitlint/compare/v4.2.1...v4.2.2) (2017-10-26)
+## [4.2.2](https://github.com/conventional-changelog/commitlint/compare/v4.2.1...v4.2.2) (2017-10-26)
@@ -151,7 +207,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt-cli
-## [4.2.1](https://github.com/marionebl/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
+## [4.2.1](https://github.com/conventional-changelog/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
@@ -159,7 +215,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt-cli
-# [4.2.0](https://github.com/marionebl/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
+# [4.2.0](https://github.com/conventional-changelog/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
@@ -167,7 +223,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt-cli
-## [4.1.1](https://github.com/marionebl/commitlint/compare/v4.1.0...v4.1.1) (2017-10-09)
+## [4.1.1](https://github.com/conventional-changelog/commitlint/compare/v4.1.0...v4.1.1) (2017-10-09)
@@ -175,7 +231,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt-cli
-# [4.1.0](https://github.com/marionebl/commitlint/compare/v4.0.0...v4.1.0) (2017-10-05)
+# [4.1.0](https://github.com/conventional-changelog/commitlint/compare/v4.0.0...v4.1.0) (2017-10-05)
@@ -183,7 +239,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt-cli
-# [4.0.0](https://github.com/marionebl/commitlint/compare/v3.2.0...v4.0.0) (2017-10-04)
+# [4.0.0](https://github.com/conventional-changelog/commitlint/compare/v3.2.0...v4.0.0) (2017-10-04)
@@ -226,7 +282,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* **prompt-cli:** add standalone prompt interface ([7911040](https://github.com/marionebl/commitlint/commit/7911040))
+* **prompt-cli:** add standalone prompt interface ([7911040](https://github.com/conventional-changelog/commitlint/commit/7911040))
@@ -262,7 +318,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* **prompt-cli:** add standalone prompt interface ([7911040](https://github.com/marionebl/commitlint/commit/7911040))
+* **prompt-cli:** add standalone prompt interface ([7911040](https://github.com/conventional-changelog/commitlint/commit/7911040))
@@ -293,7 +349,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* **prompt-cli:** add standalone prompt interface ([7911040](https://github.com/marionebl/commitlint/commit/7911040))
+* **prompt-cli:** add standalone prompt interface ([7911040](https://github.com/conventional-changelog/commitlint/commit/7911040))
@@ -314,7 +370,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* **prompt-cli:** add standalone prompt interface ([7911040](https://github.com/marionebl/commitlint/commit/7911040))
+* **prompt-cli:** add standalone prompt interface ([7911040](https://github.com/conventional-changelog/commitlint/commit/7911040))
@@ -330,7 +386,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* **prompt-cli:** add standalone prompt interface ([7911040](https://github.com/marionebl/commitlint/commit/7911040))
+* **prompt-cli:** add standalone prompt interface ([7911040](https://github.com/conventional-changelog/commitlint/commit/7911040))
@@ -341,7 +397,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* **prompt-cli:** add standalone prompt interface ([7911040](https://github.com/marionebl/commitlint/commit/7911040))
+* **prompt-cli:** add standalone prompt interface ([7911040](https://github.com/conventional-changelog/commitlint/commit/7911040))
@@ -352,7 +408,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* **prompt-cli:** add standalone prompt interface ([7911040](https://github.com/marionebl/commitlint/commit/7911040))
+* **prompt-cli:** add standalone prompt interface ([7911040](https://github.com/conventional-changelog/commitlint/commit/7911040))
@@ -368,7 +424,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* **prompt-cli:** add standalone prompt interface ([b0239d2](https://github.com/marionebl/commitlint/commit/b0239d2))
+* **prompt-cli:** add standalone prompt interface ([b0239d2](https://github.com/conventional-changelog/commitlint/commit/b0239d2))
@@ -379,4 +435,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Features
-* **prompt-cli:** add standalone prompt interface ([b0239d2](https://github.com/marionebl/commitlint/commit/b0239d2))
+* **prompt-cli:** add standalone prompt interface ([b0239d2](https://github.com/conventional-changelog/commitlint/commit/b0239d2))
diff --git a/@commitlint/prompt-cli/README.md b/@commitlint/prompt-cli/README.md
index 8a9112ab9c..82273bc612 100644
--- a/@commitlint/prompt-cli/README.md
+++ b/@commitlint/prompt-cli/README.md
@@ -14,4 +14,4 @@ git add .
commit
```
-A full usage guide is available at [docs/prompt](http://marionebl.github.io/commitlint/#/guides-use-prompt).
+A full usage guide is available at [docs/prompt](https://conventional-changelog.github.io/commitlint/#/guides-use-prompt).
diff --git a/@commitlint/prompt-cli/cli.js b/@commitlint/prompt-cli/cli.js
index 3cbcef009b..050e9ef081 100755
--- a/@commitlint/prompt-cli/cli.js
+++ b/@commitlint/prompt-cli/cli.js
@@ -1,24 +1,31 @@
#!/usr/bin/env node
const execa = require('execa');
-const meow = require('meow');
-const prompter = require('@commitlint/prompt').prompter;
-
-const HELP = `
- Usage
- $ commit
-`;
+const {prompter} = require('@commitlint/prompt');
const _ = undefined;
const prompt = () => prompter(_, commit);
-main(meow(HELP)).catch(err => {
+main().catch(err => {
setTimeout(() => {
throw err;
});
});
function main() {
- return prompt();
+ return isStageEmpty()
+ .then(empty => {
+ if (empty) {
+ console.log(
+ `Nothing to commit. Stage your changes via "git add" execute "commit" again`
+ );
+ process.exit(1);
+ }
+ })
+ .then(() => prompt());
+}
+
+function isStageEmpty() {
+ return execa('git', ['diff', '--cached']).then(r => r.stdout === '');
}
function commit(message) {
diff --git a/@commitlint/prompt-cli/cli.test.js b/@commitlint/prompt-cli/cli.test.js
new file mode 100644
index 0000000000..34c27b3e4e
--- /dev/null
+++ b/@commitlint/prompt-cli/cli.test.js
@@ -0,0 +1,25 @@
+import path from 'path';
+import {git} from '@commitlint/test';
+import test from 'ava';
+import execa from 'execa';
+import stream from 'string-to-stream';
+
+const bin = path.join(__dirname, './cli.js');
+
+const cli = (args, options) => {
+ return (input = '') => {
+ const c = execa(bin, args, {
+ capture: ['stdout'],
+ cwd: options.cwd,
+ env: options.env
+ });
+ stream(input).pipe(c.stdin);
+ return c.catch(err => err);
+ };
+};
+
+test('should print warning if stage is empty', async t => {
+ const cwd = await git.bootstrap();
+ const actual = await cli([], {cwd})('foo: bar');
+ t.true(actual.stdout.includes('Nothing to commit.'));
+});
diff --git a/@commitlint/prompt-cli/license.md b/@commitlint/prompt-cli/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@commitlint/prompt-cli/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@commitlint/prompt-cli/package.json b/@commitlint/prompt-cli/package.json
index 8478b37c7f..140a40fd81 100644
--- a/@commitlint/prompt-cli/package.json
+++ b/@commitlint/prompt-cli/package.json
@@ -1,6 +1,6 @@
{
"name": "@commitlint/prompt-cli",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "commit prompt using commitlint.config.js",
"files": [
"cli.js"
@@ -13,12 +13,11 @@
"commit": "$npm_package_bin_commit",
"deps": "dep-check",
"pkg": "pkg-check --skip-main",
- "lint": "xo"
+ "test": "ava -c 4 --verbose"
},
- "xo": false,
"repository": {
"type": "git",
- "url": "git+https://github.com/marionebl/commitlint.git"
+ "url": "git+https://github.com/conventional-changelog/commitlint.git"
},
"keywords": [
"commitlint",
@@ -27,16 +26,17 @@
"author": "Mario Nebl ",
"license": "MIT",
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"devDependencies": {
- "@commitlint/utils": "^7.0.0",
- "xo": "0.20.3"
+ "@commitlint/test": "^7.5.0",
+ "@commitlint/utils": "^7.5.0",
+ "ava": "0.25.0"
},
"dependencies": {
- "@commitlint/prompt": "^7.0.0",
+ "@commitlint/prompt": "^7.5.0",
"execa": "0.9.0",
- "meow": "3.7.0"
+ "string-to-stream": "1.1.1"
}
}
diff --git a/@commitlint/prompt/CHANGELOG.md b/@commitlint/prompt/CHANGELOG.md
index e8c77828b8..93ec9aea3e 100644
--- a/@commitlint/prompt/CHANGELOG.md
+++ b/@commitlint/prompt/CHANGELOG.md
@@ -3,8 +3,64 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* all broken website references ([#564](https://github.com/conventional-changelog/commitlint/issues/564)) ([82eeb5a](https://github.com/conventional-changelog/commitlint/commit/82eeb5a))
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+* replace all website references with conventional changelog ([#563](https://github.com/conventional-changelog/commitlint/issues/563)) ([6b86fb1](https://github.com/conventional-changelog/commitlint/commit/6b86fb1))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/prompt
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+### Bug Fixes
+
+* update to security-patched dependency versions ([97c033b](https://github.com/conventional-changelog/commitlint/commit/97c033b))
+
+
+
+
+
+## [7.2.1](https://github.com/conventional-changelog/commitlint/compare/v7.2.0...v7.2.1) (2018-10-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/prompt
+
+
+# [7.2.0](https://github.com/conventional-changelog/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05)
+
+
+
+
+**Note:** Version bump only for package @commitlint/prompt
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/prompt
+
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
@@ -12,7 +68,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
@@ -20,7 +76,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt
-## [6.0.5](https://github.com/marionebl/commitlint/compare/v6.0.4...v6.0.5) (2018-01-31)
+## [6.0.5](https://github.com/conventional-changelog/commitlint/compare/v6.0.4...v6.0.5) (2018-01-31)
@@ -28,7 +84,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
@@ -36,7 +92,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
@@ -44,7 +100,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
@@ -52,7 +108,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt
-## [6.0.1](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.1) (2018-01-09)
+## [6.0.1](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.1) (2018-01-09)
@@ -60,7 +116,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt
-# [6.0.0](https://github.com/marionebl/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
+# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
@@ -68,7 +124,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt
-## [5.2.6](https://github.com/marionebl/commitlint/compare/v5.2.5...v5.2.6) (2017-12-21)
+## [5.2.6](https://github.com/conventional-changelog/commitlint/compare/v5.2.5...v5.2.6) (2017-12-21)
@@ -76,7 +132,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt
-## [5.2.5](https://github.com/marionebl/commitlint/compare/v5.2.4...v5.2.5) (2017-12-08)
+## [5.2.5](https://github.com/conventional-changelog/commitlint/compare/v5.2.4...v5.2.5) (2017-12-08)
@@ -84,7 +140,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt
-## [5.2.4](https://github.com/marionebl/commitlint/compare/v5.2.3...v5.2.4) (2017-12-08)
+## [5.2.4](https://github.com/conventional-changelog/commitlint/compare/v5.2.3...v5.2.4) (2017-12-08)
@@ -92,7 +148,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt
-# [5.2.0](https://github.com/marionebl/commitlint/compare/v5.1.3...v5.2.0) (2017-11-30)
+# [5.2.0](https://github.com/conventional-changelog/commitlint/compare/v5.1.3...v5.2.0) (2017-11-30)
@@ -100,18 +156,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt
-## [5.1.2](https://github.com/marionebl/commitlint/compare/v5.1.1...v5.1.2) (2017-11-24)
+## [5.1.2](https://github.com/conventional-changelog/commitlint/compare/v5.1.1...v5.1.2) (2017-11-24)
### Bug Fixes
-* **prompt:** apply forced cases properly ([3a569a7](https://github.com/marionebl/commitlint/commit/3a569a7)), closes [#145](https://github.com/marionebl/commitlint/issues/145)
+* **prompt:** apply forced cases properly ([3a569a7](https://github.com/conventional-changelog/commitlint/commit/3a569a7)), closes [#145](https://github.com/conventional-changelog/commitlint/issues/145)
-## [5.1.1](https://github.com/marionebl/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
+## [5.1.1](https://github.com/conventional-changelog/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
@@ -119,24 +175,24 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt
-# [5.1.0](https://github.com/marionebl/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
+# [5.1.0](https://github.com/conventional-changelog/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
### Bug Fixes
-* update dependency concurrently to v3.5.1 ([#147](https://github.com/marionebl/commitlint/issues/147)) ([a809d0f](https://github.com/marionebl/commitlint/commit/a809d0f))
+* update dependency concurrently to v3.5.1 ([#147](https://github.com/conventional-changelog/commitlint/issues/147)) ([a809d0f](https://github.com/conventional-changelog/commitlint/commit/a809d0f))
### Features
-* **prompt:** add description for build, ci and revert ([#148](https://github.com/marionebl/commitlint/issues/148)) ([ee6ec6e](https://github.com/marionebl/commitlint/commit/ee6ec6e))
-* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/marionebl/commitlint/commit/3e6e6a8))
+* **prompt:** add description for build, ci and revert ([#148](https://github.com/conventional-changelog/commitlint/issues/148)) ([ee6ec6e](https://github.com/conventional-changelog/commitlint/commit/ee6ec6e))
+* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/conventional-changelog/commitlint/commit/3e6e6a8))
-## [5.0.1](https://github.com/marionebl/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
+## [5.0.1](https://github.com/conventional-changelog/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
@@ -144,7 +200,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt
-# [4.3.0](https://github.com/marionebl/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
+# [4.3.0](https://github.com/conventional-changelog/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
@@ -152,7 +208,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt
-## [4.2.2](https://github.com/marionebl/commitlint/compare/v4.2.1...v4.2.2) (2017-10-26)
+## [4.2.2](https://github.com/conventional-changelog/commitlint/compare/v4.2.1...v4.2.2) (2017-10-26)
@@ -160,7 +216,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt
-## [4.2.1](https://github.com/marionebl/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
+## [4.2.1](https://github.com/conventional-changelog/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
@@ -168,7 +224,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt
-# [4.2.0](https://github.com/marionebl/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
+# [4.2.0](https://github.com/conventional-changelog/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
@@ -176,7 +232,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt
-## [4.1.1](https://github.com/marionebl/commitlint/compare/v4.1.0...v4.1.1) (2017-10-09)
+## [4.1.1](https://github.com/conventional-changelog/commitlint/compare/v4.1.0...v4.1.1) (2017-10-09)
@@ -184,7 +240,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt
-# [4.1.0](https://github.com/marionebl/commitlint/compare/v4.0.0...v4.1.0) (2017-10-05)
+# [4.1.0](https://github.com/conventional-changelog/commitlint/compare/v4.0.0...v4.1.0) (2017-10-05)
@@ -192,7 +248,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/prompt
-# [4.0.0](https://github.com/marionebl/commitlint/compare/v3.2.0...v4.0.0) (2017-10-04)
+# [4.0.0](https://github.com/conventional-changelog/commitlint/compare/v3.2.0...v4.0.0) (2017-10-04)
diff --git a/@commitlint/prompt/README.md b/@commitlint/prompt/README.md
index c48d48bba4..55f18044e1 100644
--- a/@commitlint/prompt/README.md
+++ b/@commitlint/prompt/README.md
@@ -4,7 +4,7 @@
This is the library and commitizen adapter version of commitlint prompt.
A ready-to-use cli version is available at [@commitlint/prompt-cli](../prompt-cli).
-Learn how to use it at [docs/prompt](http://marionebl.github.io/commitlint/#/guides-use-prompt).
+Learn how to use it at [docs/prompt](https://conventional-changelog.github.io/commitlint/#/guides-use-prompt).
## Getting started
diff --git a/@commitlint/prompt/license.md b/@commitlint/prompt/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@commitlint/prompt/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@commitlint/prompt/package.json b/@commitlint/prompt/package.json
index 20791a3b8e..1eaf44eaeb 100644
--- a/@commitlint/prompt/package.json
+++ b/@commitlint/prompt/package.json
@@ -1,6 +1,6 @@
{
"name": "@commitlint/prompt",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "commitizen prompt using commitlint.config.js",
"main": "./lib/index.js",
"files": [
@@ -12,7 +12,6 @@
"commit": "git-cz",
"deps": "dep-check",
"pkg": "pkg-check --skip-import",
- "lint": "xo",
"start": "concurrently \"ava --watch --verbose\" \"yarn run watch\"",
"test": "ava --verbose",
"watch": "babel src --out-dir lib --watch --source-maps"
@@ -39,10 +38,9 @@
"path": "./@commitlint/prompt"
}
},
- "xo": false,
"repository": {
"type": "git",
- "url": "git+https://github.com/marionebl/commitlint.git"
+ "url": "git+https://github.com/conventional-changelog/commitlint.git"
},
"keywords": [
"conventional-changelog",
@@ -54,31 +52,25 @@
"author": "Mario Nebl ",
"license": "MIT",
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"devDependencies": {
- "@commitlint/utils": "^7.0.0",
+ "@commitlint/utils": "^7.5.0",
"ava": "0.20.0",
"babel-cli": "6.26.0",
- "babel-preset-commitlint": "^7.0.0",
+ "babel-preset-commitlint": "^7.5.0",
"babel-register": "6.26.0",
- "commitizen": "2.9.6",
+ "commitizen": "3.0.5",
"concurrently": "3.5.1",
- "cross-env": "5.1.1",
- "xo": "0.20.3"
+ "cross-env": "5.1.1"
},
"dependencies": {
- "@commitlint/load": "^7.0.0",
+ "@commitlint/load": "^7.5.0",
"babel-runtime": "^6.23.0",
"chalk": "^2.0.0",
- "lodash.camelcase": "4.3.0",
- "lodash.kebabcase": "4.1.1",
- "lodash.snakecase": "4.1.1",
- "lodash.startcase": "4.4.0",
- "lodash.topairs": "4.3.0",
- "lodash.upperfirst": "4.3.1",
+ "lodash": "4.17.11",
"throat": "^4.1.0",
- "vorpal": "^1.10.0"
+ "vorpal": "^1.12.0"
}
}
diff --git a/@commitlint/prompt/src/library/format.js b/@commitlint/prompt/src/library/format.js
index c789f71656..64bd01d7c1 100644
--- a/@commitlint/prompt/src/library/format.js
+++ b/@commitlint/prompt/src/library/format.js
@@ -1,5 +1,5 @@
import chalk from 'chalk';
-import entries from 'lodash.topairs';
+import {toPairs} from 'lodash';
export default format;
@@ -11,12 +11,12 @@ export default format;
*/
function format(input, debug = false) {
const results = debug
- ? entries(input).reduce((registry, item) => {
+ ? toPairs(input).reduce((registry, item) => {
const [name, value] = item;
registry[name] =
value === null ? chalk.grey(`<${name}>`) : chalk.bold(value);
return registry;
- }, {})
+ }, {})
: input;
// Return formatted string
diff --git a/@commitlint/prompt/src/library/get-forced-case-fn.js b/@commitlint/prompt/src/library/get-forced-case-fn.js
index 637a31afbe..29ebd553bf 100644
--- a/@commitlint/prompt/src/library/get-forced-case-fn.js
+++ b/@commitlint/prompt/src/library/get-forced-case-fn.js
@@ -1,8 +1,4 @@
-import camelCase from 'lodash.camelcase';
-import kebabCase from 'lodash.kebabcase';
-import snakeCase from 'lodash.snakecase';
-import upperFirst from 'lodash.upperfirst';
-import startCase from 'lodash.startcase';
+import * as _ from 'lodash';
/**
* Get forced case for rule
@@ -42,15 +38,15 @@ export default function getForcedCaseFn(rule) {
switch (target) {
case 'camel-case':
- return input => camelCase(input);
+ return input => _.camelCase(input);
case 'kebab-case':
- return input => kebabCase(input);
+ return input => _.kebabCase(input);
case 'snake-case':
- return input => snakeCase(input);
+ return input => _.snakeCase(input);
case 'pascal-case':
- return input => upperFirst(camelCase(input));
+ return input => _.upperFirst(_.camelCase(input));
case 'start-case':
- return input => startCase(input);
+ return input => _.startCase(input);
case 'upper-case':
case 'uppercase':
return input => input.toUpperCase();
diff --git a/@commitlint/prompt/src/library/get-prompt.js b/@commitlint/prompt/src/library/get-prompt.js
index d98c499666..8c3a21a0f9 100644
--- a/@commitlint/prompt/src/library/get-prompt.js
+++ b/@commitlint/prompt/src/library/get-prompt.js
@@ -93,13 +93,13 @@ function getPrompt(type, context = {}) {
const remainingHeaderLength = headerLength
? headerLength -
- [
+ [
results.type,
results.scope,
results.scope ? '()' : '',
results.type && results.scope ? ':' : '',
results.subject
- ].join('').length
+ ].join('').length
: Infinity;
const maxLength = Math.min(inputMaxLength, remainingHeaderLength);
diff --git a/@commitlint/prompt/src/library/meta.js b/@commitlint/prompt/src/library/meta.js
index e3e5f441fc..9cec53604e 100644
--- a/@commitlint/prompt/src/library/meta.js
+++ b/@commitlint/prompt/src/library/meta.js
@@ -1,5 +1,5 @@
import chalk from 'chalk';
-import entries from 'lodash.topairs';
+import {toPairs} from 'lodash';
/**
* Get formatted meta hints for configuration
@@ -8,7 +8,7 @@ import entries from 'lodash.topairs';
*/
export default function meta(settings) {
return chalk.grey(
- entries(settings)
+ toPairs(settings)
.filter(item => item[1])
.map(item => {
const [name, value] = item;
diff --git a/@commitlint/read/CHANGELOG.md b/@commitlint/read/CHANGELOG.md
index b0c991ba32..92dd049189 100644
--- a/@commitlint/read/CHANGELOG.md
+++ b/@commitlint/read/CHANGELOG.md
@@ -3,8 +3,51 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* all broken website references ([#564](https://github.com/conventional-changelog/commitlint/issues/564)) ([82eeb5a](https://github.com/conventional-changelog/commitlint/commit/82eeb5a))
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+* replace all website references with conventional changelog ([#563](https://github.com/conventional-changelog/commitlint/issues/563)) ([6b86fb1](https://github.com/conventional-changelog/commitlint/commit/6b86fb1))
+* resolve path to commit message for git submodules ([83b1a47](https://github.com/conventional-changelog/commitlint/commit/83b1a47))
+
+
+### Features
+
+* add support for git submodules ([cc575fa](https://github.com/conventional-changelog/commitlint/commit/cc575fa))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/read
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/read
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/read
+
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
diff --git a/@commitlint/read/README.md b/@commitlint/read/README.md
index 8555b8393b..4b0c993aa8 100644
--- a/@commitlint/read/README.md
+++ b/@commitlint/read/README.md
@@ -24,4 +24,4 @@ read({from: 'HEAD~2', to: 'HEAD~1'})
// => ['Initial commit\n\n']
```
-Consult [docs/api](http://marionebl.github.io/commitlint/#/reference-api) for comprehensive documentation.
+Consult [docs/api](https://conventional-changelog.github.io/commitlint/#/reference-api) for comprehensive documentation.
diff --git a/@commitlint/read/license.md b/@commitlint/read/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@commitlint/read/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@commitlint/read/package.json b/@commitlint/read/package.json
index 30b19f9a47..00d00b794d 100644
--- a/@commitlint/read/package.json
+++ b/@commitlint/read/package.json
@@ -1,6 +1,6 @@
{
"name": "@commitlint/read",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Read commit messages from a specified range or last edit",
"main": "lib/index.js",
"files": [
@@ -11,7 +11,6 @@
"clean": "npx rimraf lib",
"deps": "dep-check",
"pkg": "pkg-check --skip-import",
- "lint": "xo",
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
"test": "ava -c 4 --verbose",
"watch": "babel src --out-dir lib --watch --source-maps"
@@ -35,18 +34,17 @@
"babel-preset-commitlint"
]
},
- "xo": false,
"engines": {
"node": ">=4"
},
"repository": {
"type": "git",
- "url": "https://github.com/marionebl/commitlint.git"
+ "url": "https://github.com/conventional-changelog/commitlint.git"
},
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"keywords": [
"conventional-changelog",
"commitlint",
@@ -59,20 +57,19 @@
},
"license": "MIT",
"devDependencies": {
- "@commitlint/test": "^7.0.0",
- "@commitlint/utils": "^7.0.0",
+ "@commitlint/test": "^7.5.0",
+ "@commitlint/utils": "^7.5.0",
"ava": "0.22.0",
"babel-cli": "6.26.0",
- "babel-preset-commitlint": "^7.0.0",
+ "babel-preset-commitlint": "^7.5.0",
"babel-register": "6.26.0",
"concurrently": "3.5.1",
"cross-env": "5.1.1",
"execa": "0.9.0",
- "rimraf": "2.6.1",
- "xo": "0.20.3"
+ "rimraf": "2.6.1"
},
"dependencies": {
- "@commitlint/top-level": "^7.0.0",
+ "@commitlint/top-level": "^7.5.0",
"@marionebl/sander": "^0.6.0",
"babel-runtime": "^6.23.0",
"git-raw-commits": "^1.3.0"
diff --git a/@commitlint/read/src/index.js b/@commitlint/read/src/index.js
index f6405889cc..9323a34a48 100644
--- a/@commitlint/read/src/index.js
+++ b/@commitlint/read/src/index.js
@@ -41,11 +41,29 @@ async function getEditCommit(cwd, edit) {
throw new TypeError(`Could not find git root from ${cwd}`);
}
- const editFilePath =
- typeof edit === 'string'
- ? path.resolve(top, edit)
- : path.join(top, '.git/COMMIT_EDITMSG');
+ const editFilePath = await getEditFilePath(top, edit);
const editFile = await sander.readFile(editFilePath);
return [`${editFile.toString('utf-8')}\n`];
}
+
+// Get path to recently edited commit message file
+// (top: string, edit: any) => Promise
+async function getEditFilePath(top, edit) {
+ let editFilePath;
+ if (typeof edit === 'string') {
+ editFilePath = path.resolve(top, edit);
+ } else {
+ const dotgitPath = path.join(top, '.git');
+ const dotgitStats = sander.lstatSync(dotgitPath);
+ if (dotgitStats.isDirectory()) {
+ editFilePath = path.join(top, '.git/COMMIT_EDITMSG');
+ } else {
+ const gitFile = await sander.readFile(dotgitPath, 'utf8');
+ const relativeGitPath = gitFile.replace('gitdir: ', '').replace('\n', '');
+ editFilePath = path.resolve(top, relativeGitPath, 'COMMIT_EDITMSG');
+ }
+ }
+
+ return editFilePath;
+}
diff --git a/@commitlint/resolve-extends/CHANGELOG.md b/@commitlint/resolve-extends/CHANGELOG.md
index 2d5866da1d..235822649d 100644
--- a/@commitlint/resolve-extends/CHANGELOG.md
+++ b/@commitlint/resolve-extends/CHANGELOG.md
@@ -3,8 +3,48 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* **resolve-extends:** override array on extending rules ([#470](https://github.com/conventional-changelog/commitlint/issues/470)) ([#539](https://github.com/conventional-changelog/commitlint/issues/539)) ([b35000c](https://github.com/conventional-changelog/commitlint/commit/b35000c))
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+* replace old require-uncached with import-fresh ([#533](https://github.com/conventional-changelog/commitlint/issues/533)) ([b636e8c](https://github.com/conventional-changelog/commitlint/commit/b636e8c))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/resolve-extends
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+### Bug Fixes
+
+* update to security-patched dependency versions ([97c033b](https://github.com/conventional-changelog/commitlint/commit/97c033b))
+
+
+
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/resolve-extends
+
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
@@ -12,7 +52,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/resolve-extends
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
@@ -20,7 +60,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/resolve-extends
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
@@ -28,7 +68,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/resolve-extends
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
@@ -36,7 +76,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/resolve-extends
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
@@ -44,9 +84,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/resolve-extends
-# [6.0.0](https://github.com/marionebl/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
+# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
### Bug Fixes
-* correctly resolve parserOpts [#115](https://github.com/marionebl/commitlint/issues/115) [#95](https://github.com/marionebl/commitlint/issues/95) ([1353dd5](https://github.com/marionebl/commitlint/commit/1353dd5))
+* correctly resolve parserOpts [#115](https://github.com/conventional-changelog/commitlint/issues/115) [#95](https://github.com/conventional-changelog/commitlint/issues/95) ([1353dd5](https://github.com/conventional-changelog/commitlint/commit/1353dd5))
diff --git a/@commitlint/resolve-extends/license.md b/@commitlint/resolve-extends/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@commitlint/resolve-extends/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@commitlint/resolve-extends/package.json b/@commitlint/resolve-extends/package.json
index 78abbb52cf..4ec71b9b0a 100644
--- a/@commitlint/resolve-extends/package.json
+++ b/@commitlint/resolve-extends/package.json
@@ -1,6 +1,6 @@
{
"name": "@commitlint/resolve-extends",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Lint your commit messages",
"main": "lib/index.js",
"files": [
@@ -11,7 +11,6 @@
"clean": "npx rimraf lib",
"deps": "dep-check",
"pkg": "pkg-check",
- "lint": "xo",
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
"test": "ava -c 4 --verbose",
"watch": "babel src --out-dir lib --watch --source-maps"
@@ -35,18 +34,17 @@
"babel-preset-commitlint"
]
},
- "xo": false,
"engines": {
"node": ">=4"
},
"repository": {
"type": "git",
- "url": "https://github.com/marionebl/commitlint.git"
+ "url": "https://github.com/conventional-changelog/commitlint.git"
},
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"keywords": [
"conventional-changelog",
"commitlint",
@@ -59,25 +57,23 @@
},
"license": "MIT",
"devDependencies": {
- "@commitlint/parse": "^7.0.0",
- "@commitlint/test": "^7.0.0",
- "@commitlint/utils": "^7.0.0",
+ "@commitlint/parse": "^7.5.0",
+ "@commitlint/test": "^7.5.0",
+ "@commitlint/utils": "^7.5.0",
"@marionebl/sander": "0.6.1",
"ava": "0.22.0",
"babel-cli": "6.26.0",
- "babel-preset-commitlint": "^7.0.0",
+ "babel-preset-commitlint": "^7.5.0",
"babel-register": "6.26.0",
"concurrently": "3.5.1",
"cross-env": "5.1.1",
"execa": "0.9.0",
- "rimraf": "2.6.1",
- "xo": "0.20.3"
+ "rimraf": "2.6.1"
},
"dependencies": {
"babel-runtime": "6.26.0",
- "lodash.merge": "4.6.1",
- "lodash.omit": "4.5.0",
- "require-uncached": "^1.0.3",
+ "import-fresh": "^3.0.0",
+ "lodash": "4.17.11",
"resolve-from": "^4.0.0",
"resolve-global": "^0.1.0"
}
diff --git a/@commitlint/resolve-extends/src/index.js b/@commitlint/resolve-extends/src/index.js
index e2d875a032..e8750545fd 100644
--- a/@commitlint/resolve-extends/src/index.js
+++ b/@commitlint/resolve-extends/src/index.js
@@ -1,16 +1,20 @@
import path from 'path';
import 'resolve-global'; // eslint-disable-line import/no-unassigned-import
-import requireUncached from 'require-uncached';
+import importFresh from 'import-fresh';
import resolveFrom from 'resolve-from';
-import merge from 'lodash.merge';
-import omit from 'lodash.omit';
+import {isArray, merge, mergeWith, omit} from 'lodash';
// Resolve extend configs
export default function resolveExtends(config = {}, context = {}) {
const {extends: e} = config;
const extended = loadExtends(config, context).reduceRight(
- (r, c) => merge(r, omit(c, 'extends')),
+ (r, c) =>
+ mergeWith(r, omit(c, 'extends'), (objValue, srcValue) => {
+ if (isArray(objValue)) {
+ return srcValue;
+ }
+ }),
e ? {extends: e} : {}
);
@@ -114,7 +118,7 @@ function resolveFromSilent(cwd, id) {
function resolveGlobalSilent(id) {
try {
- const resolveGlobal = requireUncached('resolve-global');
+ const resolveGlobal = importFresh('resolve-global');
return resolveGlobal(id);
} catch (err) {}
}
diff --git a/@commitlint/resolve-extends/src/index.test.js b/@commitlint/resolve-extends/src/index.test.js
index 50a01298e1..fe4af27701 100644
--- a/@commitlint/resolve-extends/src/index.test.js
+++ b/@commitlint/resolve-extends/src/index.test.js
@@ -190,6 +190,34 @@ test('propagates contents recursively', t => {
t.deepEqual(actual, expected);
});
+test('propagates contents recursively with overlap', t => {
+ const input = {extends: ['extender-name']};
+
+ const actual = resolveExtends(input, {
+ resolve: id,
+ require(id) {
+ if (id === 'extender-name') {
+ return {
+ extends: ['recursive-extender-name'],
+ rules: {rule: ['zero', 'one']}
+ };
+ }
+ if (id === 'recursive-extender-name') {
+ return {rules: {rule: ['two', 'three', 'four']}};
+ }
+ }
+ });
+
+ const expected = {
+ extends: ['extender-name'],
+ rules: {
+ rule: ['zero', 'one']
+ }
+ };
+
+ t.deepEqual(actual, expected);
+});
+
test('extending contents should take precedence', t => {
const input = {extends: ['extender-name'], zero: 'root'};
diff --git a/@commitlint/rules/CHANGELOG.md b/@commitlint/rules/CHANGELOG.md
index 224c7e081c..05d572202f 100644
--- a/@commitlint/rules/CHANGELOG.md
+++ b/@commitlint/rules/CHANGELOG.md
@@ -3,19 +3,97 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+
+
+### Features
+
+* **rule-header-length:** show current header length ([6d61c4f](https://github.com/conventional-changelog/commitlint/commit/6d61c4f))
+
+
+
+
+
+# [7.4.0](https://github.com/conventional-changelog/commitlint/compare/v7.3.2...v7.4.0) (2019-01-27)
+
+
+### Features
+
+* **rules:** create header-case and header-full-stop rules ([#547](https://github.com/conventional-changelog/commitlint/issues/547)) ([4c36cbd](https://github.com/conventional-changelog/commitlint/commit/4c36cbd))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/rules
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+### Bug Fixes
+
+* update to security-patched dependency versions ([97c033b](https://github.com/conventional-changelog/commitlint/commit/97c033b))
+* use correct label for failing empty subjects ([#481](https://github.com/conventional-changelog/commitlint/issues/481)) ([2e7e34d](https://github.com/conventional-changelog/commitlint/commit/2e7e34d)), closes [#476](https://github.com/conventional-changelog/commitlint/issues/476)
+
+
+
+
+
+# [7.2.0](https://github.com/conventional-changelog/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05)
+
+
+### Bug Fixes
+
+* **rules:** include possible body offset in footer leading blank ([ff0111a](https://github.com/conventional-changelog/commitlint/commit/ff0111a))
+* handle case rules for numerics correctly ([cadcfed](https://github.com/conventional-changelog/commitlint/commit/cadcfed))
+
+
+
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/rules
+
+
+# [7.1.0](https://github.com/conventional-changelog/commitlint/compare/v7.0.1...v7.1.0) (2018-08-29)
+
+
+### Features
+
+* add max line length to body/footer ([542f50e](https://github.com/conventional-changelog/commitlint/commit/542f50e))
+
+
+
+
-# [6.2.0](https://github.com/marionebl/commitlint/compare/v6.1.3...v6.2.0) (2018-05-01)
+# [6.2.0](https://github.com/conventional-changelog/commitlint/compare/v6.1.3...v6.2.0) (2018-05-01)
### Features
-* **rules:** support array for scope-case and type-case ([#312](https://github.com/marionebl/commitlint/issues/312)) ([1f46b9f](https://github.com/marionebl/commitlint/commit/1f46b9f)), closes [#307](https://github.com/marionebl/commitlint/issues/307)
+* **rules:** support array for scope-case and type-case ([#312](https://github.com/conventional-changelog/commitlint/issues/312)) ([1f46b9f](https://github.com/conventional-changelog/commitlint/commit/1f46b9f)), closes [#307](https://github.com/conventional-changelog/commitlint/issues/307)
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
@@ -23,7 +101,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/rules
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
@@ -31,7 +109,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/rules
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
@@ -39,7 +117,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/rules
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
@@ -47,18 +125,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/rules
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
### Bug Fixes
-* remove typo in error message of type-case ([cb577cb](https://github.com/marionebl/commitlint/commit/cb577cb))
+* remove typo in error message of type-case ([cb577cb](https://github.com/conventional-changelog/commitlint/commit/cb577cb))
-## [6.0.1](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.1) (2018-01-09)
+## [6.0.1](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.1) (2018-01-09)
@@ -66,7 +144,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/rules
-# [6.0.0](https://github.com/marionebl/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
+# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
diff --git a/@commitlint/rules/license.md b/@commitlint/rules/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@commitlint/rules/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@commitlint/rules/package.json b/@commitlint/rules/package.json
index f650ba6b5f..8d7a3501ce 100644
--- a/@commitlint/rules/package.json
+++ b/@commitlint/rules/package.json
@@ -1,6 +1,6 @@
{
"name": "@commitlint/rules",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Lint your commit messages",
"main": "lib/index.js",
"files": [
@@ -11,7 +11,6 @@
"clean": "npx rimraf lib",
"deps": "dep-check",
"pkg": "pkg-check --skip-import",
- "lint": "xo",
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
"test": "ava -c 4 --verbose",
"watch": "babel src --out-dir lib --watch --source-maps"
@@ -35,18 +34,17 @@
"babel-preset-commitlint"
]
},
- "xo": false,
"engines": {
"node": ">=4"
},
"repository": {
"type": "git",
- "url": "https://github.com/marionebl/commitlint.git"
+ "url": "https://github.com/conventional-changelog/commitlint.git"
},
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"keywords": [
"conventional-changelog",
"commitlint",
@@ -59,25 +57,24 @@
},
"license": "MIT",
"devDependencies": {
- "@commitlint/parse": "^7.0.0",
- "@commitlint/test": "^7.0.0",
- "@commitlint/utils": "^7.0.0",
+ "@commitlint/parse": "^7.5.0",
+ "@commitlint/test": "^7.5.0",
+ "@commitlint/utils": "^7.5.0",
"ava": "0.22.0",
"babel-cli": "6.26.0",
- "babel-preset-commitlint": "^7.0.0",
+ "babel-preset-commitlint": "^7.5.0",
"babel-register": "6.26.0",
"concurrently": "3.5.1",
"conventional-changelog-angular": "1.6.6",
"cross-env": "5.1.1",
"globby": "8.0.1",
- "lodash.values": "4.3.0",
- "rimraf": "2.6.1",
- "xo": "0.20.3"
+ "lodash": "4.17.11",
+ "rimraf": "2.6.1"
},
"dependencies": {
- "@commitlint/ensure": "^7.0.0",
- "@commitlint/message": "^7.0.0",
- "@commitlint/to-lines": "^7.0.0",
+ "@commitlint/ensure": "^7.5.0",
+ "@commitlint/message": "^7.5.0",
+ "@commitlint/to-lines": "^7.5.0",
"babel-runtime": "^6.23.0"
}
}
diff --git a/@commitlint/rules/src/body-max-line-length.js b/@commitlint/rules/src/body-max-line-length.js
new file mode 100644
index 0000000000..9f28f616bf
--- /dev/null
+++ b/@commitlint/rules/src/body-max-line-length.js
@@ -0,0 +1,14 @@
+import {maxLineLength} from '@commitlint/ensure';
+
+export default (parsed, when, value) => {
+ const input = parsed.body;
+
+ if (!input) {
+ return [true];
+ }
+
+ return [
+ maxLineLength(input, value),
+ `body's lines must not be longer than ${value} characters`
+ ];
+};
diff --git a/@commitlint/rules/src/body-max-line-length.test.js b/@commitlint/rules/src/body-max-line-length.test.js
new file mode 100644
index 0000000000..d648ad8a0b
--- /dev/null
+++ b/@commitlint/rules/src/body-max-line-length.test.js
@@ -0,0 +1,52 @@
+import test from 'ava';
+import parse from '@commitlint/parse';
+import check from './body-max-line-length';
+
+const short = 'a';
+const long = 'ab';
+
+const value = short.length;
+
+const messages = {
+ empty: 'test: subject',
+ short: `test: subject\n${short}`,
+ long: `test: subject\n${long}`,
+ shortMultipleLines: `test:subject\n${short}\n${short}\n${short}`,
+ longMultipleLines: `test:subject\n${short}\n${long}\n${short}`
+};
+
+const parsed = {
+ empty: parse(messages.empty),
+ short: parse(messages.short),
+ long: parse(messages.long)
+};
+
+test('with empty should succeed', async t => {
+ const [actual] = check(await parsed.empty, '', value);
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with short should succeed', async t => {
+ const [actual] = check(await parsed.short, '', value);
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with long should fail', async t => {
+ const [actual] = check(await parsed.long, '', value);
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with short with multiple lines should succeed', async t => {
+ const [actual] = check(await parsed.short, '', value);
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with long with multiple lines should fail', async t => {
+ const [actual] = check(await parsed.long, '', value);
+ const expected = false;
+ t.is(actual, expected);
+});
diff --git a/@commitlint/rules/src/body-tense.js b/@commitlint/rules/src/body-tense.js
deleted file mode 100644
index a5a5681420..0000000000
--- a/@commitlint/rules/src/body-tense.js
+++ /dev/null
@@ -1,6 +0,0 @@
-export default (parsed, when, value) => {
- return [
- false,
- `rules.body-tense is deprecated. Received [${when}, [${value.join(', ')}]]`
- ];
-};
diff --git a/@commitlint/rules/src/body-tense.test.js b/@commitlint/rules/src/body-tense.test.js
deleted file mode 100644
index 358f3484a9..0000000000
--- a/@commitlint/rules/src/body-tense.test.js
+++ /dev/null
@@ -1,13 +0,0 @@
-import test from 'ava';
-import parse from '@commitlint/parse';
-import bodyTense from './body-tense';
-
-test('returns deprecation warning', async t => {
- const actual = bodyTense(await parse('test: \n'), 'always', [
- 'present-imperative'
- ]);
- t.deepEqual(actual, [
- false,
- 'rules.body-tense is deprecated. Received [always, [present-imperative]]'
- ]);
-});
diff --git a/@commitlint/rules/src/footer-leading-blank.js b/@commitlint/rules/src/footer-leading-blank.js
index 0d5c88f582..fdbe09de7e 100644
--- a/@commitlint/rules/src/footer-leading-blank.js
+++ b/@commitlint/rules/src/footer-leading-blank.js
@@ -8,7 +8,10 @@ export default (parsed, when) => {
}
const negated = when === 'never';
- const [leading] = toLines(parsed.raw).slice(toLines(parsed.body).length + 1);
+ const rawLines = toLines(parsed.raw);
+ const bodyLines = toLines(parsed.body);
+ const bodyOffset = bodyLines.length > 0 ? rawLines.indexOf(bodyLines[0]) : 1;
+ const [leading] = rawLines.slice(bodyLines.length + bodyOffset);
// Check if the first line of footer is empty
const succeeds = leading === '';
diff --git a/@commitlint/rules/src/footer-leading-blank.test.js b/@commitlint/rules/src/footer-leading-blank.test.js
index 591ffb3ddc..b65e553da8 100644
--- a/@commitlint/rules/src/footer-leading-blank.test.js
+++ b/@commitlint/rules/src/footer-leading-blank.test.js
@@ -11,7 +11,8 @@ const messages = {
'feat(new-parser): introduces a new parsing library\n\nBREAKING CHANGE: new library does not support foo-construct',
with: 'test: subject\nbody\n\nBREAKING CHANGE: something important',
withMulitLine:
- 'test: subject\nmulti\nline\nbody\n\nBREAKING CHANGE: something important'
+ 'test: subject\nmulti\nline\nbody\n\nBREAKING CHANGE: something important',
+ withDoubleNewLine: 'fix: some issue\n\ndetailed explanation\n\ncloses #123'
};
const parsed = {
@@ -21,7 +22,8 @@ const parsed = {
without: parse(messages.without),
withoutBody: parse(messages.withoutBody),
with: parse(messages.with),
- withMulitLine: parse(messages.withMulitLine)
+ withMulitLine: parse(messages.withMulitLine),
+ withDoubleNewLine: parse(messages.withDoubleNewLine)
};
test('with simple message should succeed for empty keyword', async t => {
@@ -143,3 +145,15 @@ test('with blank line before footer and multiline body should succeed for "alway
const expected = true;
t.is(actual, expected);
});
+
+test('with double blank line before footer and double line in body should fail for "never"', async t => {
+ const [actual] = footerLeadingBlank(await parsed.withDoubleNewLine, 'never');
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with double blank line before footer and double line in body should succeed for "always"', async t => {
+ const [actual] = footerLeadingBlank(await parsed.withDoubleNewLine, 'always');
+ const expected = true;
+ t.is(actual, expected);
+});
diff --git a/@commitlint/rules/src/footer-max-line-length.js b/@commitlint/rules/src/footer-max-line-length.js
new file mode 100644
index 0000000000..019afeac3c
--- /dev/null
+++ b/@commitlint/rules/src/footer-max-line-length.js
@@ -0,0 +1,14 @@
+import {maxLineLength} from '@commitlint/ensure';
+
+export default (parsed, when, value) => {
+ const input = parsed.footer;
+
+ if (!input) {
+ return [true];
+ }
+
+ return [
+ maxLineLength(input, value),
+ `footer's lines must not be longer than ${value} characters`
+ ];
+};
diff --git a/@commitlint/rules/src/footer-max-line-length.test.js b/@commitlint/rules/src/footer-max-line-length.test.js
new file mode 100644
index 0000000000..c336c31b5a
--- /dev/null
+++ b/@commitlint/rules/src/footer-max-line-length.test.js
@@ -0,0 +1,60 @@
+import test from 'ava';
+import parse from '@commitlint/parse';
+import check from './footer-max-line-length';
+
+const short = 'BREAKING CHANGE: a';
+const long = 'BREAKING CHANGE: ab';
+
+const value = short.length;
+
+const messages = {
+ simple: 'test: subject',
+ empty: 'test: subject\nbody',
+ short: `test: subject\n${short}`,
+ long: `test: subject\n${long}`,
+ shortMultipleLines: `test:subject\n${short}\n${short}\n${short}`,
+ longMultipleLines: `test:subject\n${short}\n${long}\n${short}`
+};
+
+const parsed = {
+ simple: parse(messages.simple),
+ empty: parse(messages.empty),
+ short: parse(messages.short),
+ long: parse(messages.long)
+};
+
+test('with simple should succeed', async t => {
+ const [actual] = check(await parsed.simple, '', value);
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with empty should succeed', async t => {
+ const [actual] = check(await parsed.empty, '', value);
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with short should succeed', async t => {
+ const [actual] = check(await parsed.short, '', value);
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with long should fail', async t => {
+ const [actual] = check(await parsed.long, '', value);
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with short with multiple lines should succeed', async t => {
+ const [actual] = check(await parsed.short, '', value);
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with long with multiple lines should fail', async t => {
+ const [actual] = check(await parsed.long, '', value);
+ const expected = false;
+ t.is(actual, expected);
+});
diff --git a/@commitlint/rules/src/footer-tense.js b/@commitlint/rules/src/footer-tense.js
deleted file mode 100644
index 3b74a40afa..0000000000
--- a/@commitlint/rules/src/footer-tense.js
+++ /dev/null
@@ -1,8 +0,0 @@
-export default (parsed, when, value) => {
- return [
- false,
- `rules.footer-tense is deprecated. Received [${when}, [${value.join(
- ', '
- )}]]`
- ];
-};
diff --git a/@commitlint/rules/src/footer-tense.test.js b/@commitlint/rules/src/footer-tense.test.js
deleted file mode 100644
index b97ffd24af..0000000000
--- a/@commitlint/rules/src/footer-tense.test.js
+++ /dev/null
@@ -1,13 +0,0 @@
-import test from 'ava';
-import parse from '@commitlint/parse';
-import footerTense from './footer-tense';
-
-test('returns deprecation warning', async t => {
- const actual = footerTense(await parse('test: subject\nbody'), 'always', [
- 'present-imperative'
- ]);
- t.deepEqual(actual, [
- false,
- 'rules.footer-tense is deprecated. Received [always, [present-imperative]]'
- ]);
-});
diff --git a/@commitlint/rules/src/header-case.js b/@commitlint/rules/src/header-case.js
new file mode 100644
index 0000000000..779f4a5e97
--- /dev/null
+++ b/@commitlint/rules/src/header-case.js
@@ -0,0 +1,34 @@
+import * as ensure from '@commitlint/ensure';
+import message from '@commitlint/message';
+
+const negated = when => when === 'never';
+
+export default (parsed, when, value) => {
+ const {header} = parsed;
+
+ if (typeof header !== 'string' || !header.match(/^[a-z]/i)) {
+ return [true];
+ }
+
+ const checks = (Array.isArray(value) ? value : [value]).map(check => {
+ if (typeof check === 'string') {
+ return {
+ when: 'always',
+ case: check
+ };
+ }
+ return check;
+ });
+
+ const result = checks.some(check => {
+ const r = ensure.case(header, check.case);
+ return negated(check.when) ? !r : r;
+ });
+
+ const list = checks.map(c => c.case).join(', ');
+
+ return [
+ negated(when) ? !result : result,
+ message([`header must`, negated(when) ? `not` : null, `be ${list}`])
+ ];
+};
diff --git a/@commitlint/rules/src/header-case.test.js b/@commitlint/rules/src/header-case.test.js
new file mode 100644
index 0000000000..fe7f501487
--- /dev/null
+++ b/@commitlint/rules/src/header-case.test.js
@@ -0,0 +1,318 @@
+import test from 'ava';
+import parse from '@commitlint/parse';
+import headerCase from './header-case';
+
+const messages = {
+ numeric: '1.0.0\n',
+ lowercase: 'header\n',
+ mixedcase: 'hEaDeR\n',
+ uppercase: 'HEADER\n',
+ camelcase: 'heaDer\n',
+ kebabcase: 'hea-der\n',
+ pascalcase: 'HeaDer\n',
+ snakecase: 'hea_der\n',
+ startcase: 'Hea Der\n'
+};
+
+const parsed = {
+ numeric: parse(messages.numeric),
+ lowercase: parse(messages.lowercase),
+ mixedcase: parse(messages.mixedcase),
+ uppercase: parse(messages.uppercase),
+ camelcase: parse(messages.camelcase),
+ kebabcase: parse(messages.kebabcase),
+ pascalcase: parse(messages.pascalcase),
+ snakecase: parse(messages.snakecase),
+ startcase: parse(messages.startcase)
+};
+
+test('with lowercase header should fail for "never lowercase"', async t => {
+ const [actual] = headerCase(await parsed.lowercase, 'never', 'lowercase');
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with lowercase header should succeed for "always lowercase"', async t => {
+ const [actual] = headerCase(await parsed.lowercase, 'always', 'lowercase');
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with mixedcase header should succeed for "never lowercase"', async t => {
+ const [actual] = headerCase(await parsed.mixedcase, 'never', 'lowercase');
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with mixedcase header should fail for "always lowercase"', async t => {
+ const [actual] = headerCase(await parsed.mixedcase, 'always', 'lowercase');
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with mixedcase header should succeed for "never uppercase"', async t => {
+ const [actual] = headerCase(await parsed.mixedcase, 'never', 'uppercase');
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with mixedcase header should fail for "always uppercase"', async t => {
+ const [actual] = headerCase(await parsed.mixedcase, 'always', 'uppercase');
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with uppercase header should fail for "never uppercase"', async t => {
+ const [actual] = headerCase(await parsed.uppercase, 'never', 'uppercase');
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with lowercase header should succeed for "always uppercase"', async t => {
+ const [actual] = headerCase(await parsed.uppercase, 'always', 'uppercase');
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with camelcase header should fail for "always uppercase"', async t => {
+ const [actual] = headerCase(await parsed.camelcase, 'always', 'uppercase');
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with camelcase header should succeed for "never uppercase"', async t => {
+ const [actual] = headerCase(await parsed.camelcase, 'never', 'uppercase');
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with camelcase header should fail for "always pascalcase"', async t => {
+ const [actual] = headerCase(await parsed.camelcase, 'always', 'pascal-case');
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with camelcase header should fail for "always kebabcase"', async t => {
+ const [actual] = headerCase(await parsed.camelcase, 'always', 'kebab-case');
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with camelcase header should fail for "always snakecase"', async t => {
+ const [actual] = headerCase(await parsed.camelcase, 'always', 'snake-case');
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with camelcase header should succeed for "always camelcase"', async t => {
+ const [actual] = headerCase(await parsed.camelcase, 'always', 'camel-case');
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with pascalcase header should fail for "always uppercase"', async t => {
+ const [actual] = headerCase(await parsed.pascalcase, 'always', 'uppercase');
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with pascalcase header should succeed for "never uppercase"', async t => {
+ const [actual] = headerCase(await parsed.pascalcase, 'never', 'uppercase');
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with pascalcase header should succeed for "always pascalcase"', async t => {
+ const [actual] = headerCase(await parsed.pascalcase, 'always', 'pascal-case');
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with pascalcase header should fail for "always kebabcase"', async t => {
+ const [actual] = headerCase(await parsed.pascalcase, 'always', 'kebab-case');
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with pascalcase header should fail for "always snakecase"', async t => {
+ const [actual] = headerCase(await parsed.pascalcase, 'always', 'snake-case');
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with pascalcase header should fail for "always camelcase"', async t => {
+ const [actual] = headerCase(await parsed.pascalcase, 'always', 'camel-case');
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with snakecase header should fail for "always uppercase"', async t => {
+ const [actual] = headerCase(await parsed.snakecase, 'always', 'uppercase');
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with snakecase header should succeed for "never uppercase"', async t => {
+ const [actual] = headerCase(await parsed.snakecase, 'never', 'uppercase');
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with snakecase header should fail for "always pascalcase"', async t => {
+ const [actual] = headerCase(await parsed.snakecase, 'always', 'pascal-case');
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with snakecase header should fail for "always kebabcase"', async t => {
+ const [actual] = headerCase(await parsed.snakecase, 'always', 'kebab-case');
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with snakecase header should succeed for "always snakecase"', async t => {
+ const [actual] = headerCase(await parsed.snakecase, 'always', 'snake-case');
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with snakecase header should fail for "always camelcase"', async t => {
+ const [actual] = headerCase(await parsed.snakecase, 'always', 'camel-case');
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with startcase header should fail for "always uppercase"', async t => {
+ const [actual] = headerCase(await parsed.startcase, 'always', 'uppercase');
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with startcase header should succeed for "never uppercase"', async t => {
+ const [actual] = headerCase(await parsed.startcase, 'never', 'uppercase');
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with startcase header should fail for "always pascalcase"', async t => {
+ const [actual] = headerCase(await parsed.startcase, 'always', 'pascal-case');
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with startcase header should fail for "always kebabcase"', async t => {
+ const [actual] = headerCase(await parsed.startcase, 'always', 'kebab-case');
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with startcase header should fail for "always snakecase"', async t => {
+ const [actual] = headerCase(await parsed.startcase, 'always', 'snake-case');
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with startcase header should fail for "always camelcase"', async t => {
+ const [actual] = headerCase(await parsed.startcase, 'always', 'camel-case');
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with startcase header should succeed for "always startcase"', async t => {
+ const [actual] = headerCase(await parsed.startcase, 'always', 'start-case');
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('should use expected message with "always"', async t => {
+ const [, message] = headerCase(
+ await parsed.uppercase,
+ 'always',
+ 'lower-case'
+ );
+ t.true(message.indexOf('must be lower-case') > -1);
+});
+
+test('should use expected message with "never"', async t => {
+ const [, message] = headerCase(await parsed.uppercase, 'never', 'upper-case');
+ t.true(message.indexOf('must not be upper-case') > -1);
+});
+
+test('with uppercase scope should succeed for "always [uppercase, lowercase]"', async t => {
+ const [actual] = headerCase(await parsed.uppercase, 'always', [
+ 'uppercase',
+ 'lowercase'
+ ]);
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with lowercase header should succeed for "always [uppercase, lowercase]"', async t => {
+ const [actual] = headerCase(await parsed.lowercase, 'always', [
+ 'uppercase',
+ 'lowercase'
+ ]);
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with mixedcase header should fail for "always [uppercase, lowercase]"', async t => {
+ const [actual] = headerCase(await parsed.mixedcase, 'always', [
+ 'uppercase',
+ 'lowercase'
+ ]);
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with mixedcase header should pass for "always [uppercase, lowercase, camel-case]"', async t => {
+ const [actual] = headerCase(await parsed.mixedcase, 'always', [
+ 'uppercase',
+ 'lowercase',
+ 'camel-case'
+ ]);
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with mixedcase scope should pass for "never [uppercase, lowercase]"', async t => {
+ const [actual] = headerCase(await parsed.mixedcase, 'never', [
+ 'uppercase',
+ 'lowercase'
+ ]);
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with uppercase scope should fail for "never [uppercase, lowercase]"', async t => {
+ const [actual] = headerCase(await parsed.uppercase, 'never', [
+ 'uppercase',
+ 'lowercase'
+ ]);
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('with numeric header should succeed for "never lowercase"', async t => {
+ const [actual] = headerCase(await parsed.numeric, 'never', 'lowercase');
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with numeric header should succeed for "always lowercase"', async t => {
+ const [actual] = headerCase(await parsed.numeric, 'always', 'lowercase');
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with numeric header should succeed for "never uppercase"', async t => {
+ const [actual] = headerCase(await parsed.numeric, 'never', 'uppercase');
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with numeric header should succeed for "always uppercase"', async t => {
+ const [actual] = headerCase(await parsed.numeric, 'always', 'uppercase');
+ const expected = true;
+ t.is(actual, expected);
+});
diff --git a/@commitlint/rules/src/header-full-stop.js b/@commitlint/rules/src/header-full-stop.js
new file mode 100644
index 0000000000..f30ce6d12c
--- /dev/null
+++ b/@commitlint/rules/src/header-full-stop.js
@@ -0,0 +1,12 @@
+import message from '@commitlint/message';
+
+export default (parsed, when, value) => {
+ const {header} = parsed;
+ const negated = when === 'never';
+ const hasStop = header[header.length - 1] === value;
+
+ return [
+ negated ? !hasStop : hasStop,
+ message(['header', negated ? 'may not' : 'must', 'end with full stop'])
+ ];
+};
diff --git a/@commitlint/rules/src/header-full-stop.test.js b/@commitlint/rules/src/header-full-stop.test.js
new file mode 100644
index 0000000000..5b41da82e3
--- /dev/null
+++ b/@commitlint/rules/src/header-full-stop.test.js
@@ -0,0 +1,37 @@
+import test from 'ava';
+import parse from '@commitlint/parse';
+import check from './header-full-stop';
+
+const messages = {
+ with: `header.\n`,
+ without: `header\n`
+};
+
+const parsed = {
+ with: parse(messages.with),
+ without: parse(messages.without)
+};
+
+test('with against "always ." should succeed', async t => {
+ const [actual] = check(await parsed.with, 'always', '.');
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with against "never ." should fail', async t => {
+ const [actual] = check(await parsed.with, 'never', '.');
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('without against "always ." should fail', async t => {
+ const [actual] = check(await parsed.without, 'always', '.');
+ const expected = false;
+ t.is(actual, expected);
+});
+
+test('without against "never ." should succeed', async t => {
+ const [actual] = check(await parsed.without, 'never', '.');
+ const expected = true;
+ t.is(actual, expected);
+});
diff --git a/@commitlint/rules/src/header-max-length.js b/@commitlint/rules/src/header-max-length.js
index ed1340a6a9..4b54e2e6ad 100644
--- a/@commitlint/rules/src/header-max-length.js
+++ b/@commitlint/rules/src/header-max-length.js
@@ -3,6 +3,8 @@ import {maxLength} from '@commitlint/ensure';
export default (parsed, when, value) => {
return [
maxLength(parsed.header, value),
- `header must not be longer than ${value} characters`
+ `header must not be longer than ${value} characters, current length is ${
+ parsed.header.length
+ }`
];
};
diff --git a/@commitlint/rules/src/header-min-length.js b/@commitlint/rules/src/header-min-length.js
index 99deaaf5ec..35b2ed0fa2 100644
--- a/@commitlint/rules/src/header-min-length.js
+++ b/@commitlint/rules/src/header-min-length.js
@@ -3,6 +3,8 @@ import {minLength} from '@commitlint/ensure';
export default (parsed, when, value) => {
return [
minLength(parsed.header, value),
- `header must not be shorter than ${value} characters`
+ `header must not be shorter than ${value} characters, current length is ${
+ parsed.header.length
+ }`
];
};
diff --git a/@commitlint/rules/src/index.js b/@commitlint/rules/src/index.js
index c6c1cb24ab..4d61033f57 100644
--- a/@commitlint/rules/src/index.js
+++ b/@commitlint/rules/src/index.js
@@ -3,16 +3,17 @@ export default {
'body-empty': require('./body-empty'),
'body-leading-blank': require('./body-leading-blank'),
'body-max-length': require('./body-max-length'),
+ 'body-max-line-length': require('./body-max-line-length'),
'body-min-length': require('./body-min-length'),
- 'body-tense': require('./body-tense'),
'footer-empty': require('./footer-empty'),
'footer-leading-blank': require('./footer-leading-blank'),
'footer-max-length': require('./footer-max-length'),
+ 'footer-max-line-length': require('./footer-max-line-length'),
'footer-min-length': require('./footer-min-length'),
- 'footer-tense': require('./footer-tense'),
+ 'header-case': require('./header-case'),
+ 'header-full-stop': require('./header-full-stop'),
'header-max-length': require('./header-max-length'),
'header-min-length': require('./header-min-length'),
- lang: require('./lang'),
'references-empty': require('./references-empty'),
'scope-case': require('./scope-case'),
'scope-empty': require('./scope-empty'),
@@ -25,7 +26,6 @@ export default {
'subject-full-stop': require('./subject-full-stop'),
'subject-max-length': require('./subject-max-length'),
'subject-min-length': require('./subject-min-length'),
- 'subject-tense': require('./subject-tense'),
'type-case': require('./type-case'),
'type-empty': require('./type-empty'),
'type-enum': require('./type-enum'),
diff --git a/@commitlint/rules/src/index.test.js b/@commitlint/rules/src/index.test.js
index bf51e57563..9176e6008f 100644
--- a/@commitlint/rules/src/index.test.js
+++ b/@commitlint/rules/src/index.test.js
@@ -1,12 +1,12 @@
import path from 'path';
import test from 'ava';
import globby from 'globby';
-import values from 'lodash.values';
+import {values} from 'lodash';
import rules from '.';
test('exports all rules', async t => {
- const expected = await glob('*.js');
- const actual = Object.keys(rules);
+ const expected = (await glob('*.js')).sort();
+ const actual = Object.keys(rules).sort();
t.deepEqual(actual, expected);
});
diff --git a/@commitlint/rules/src/lang.js b/@commitlint/rules/src/lang.js
deleted file mode 100644
index 02ee5a76d5..0000000000
--- a/@commitlint/rules/src/lang.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default (parsed, when, value) => {
- return [false, `rules.lang is deprecated. Received [${when}, ${value}]`];
-};
diff --git a/@commitlint/rules/src/lang.test.js b/@commitlint/rules/src/lang.test.js
deleted file mode 100644
index bb6970b205..0000000000
--- a/@commitlint/rules/src/lang.test.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import test from 'ava';
-import parse from '@commitlint/parse';
-import check from './lang';
-
-test('returns a deprecation warning', async t => {
- const actual = check(
- await parse('(): this is a serious subject'),
- 'always',
- 'eng'
- );
- t.deepEqual(actual, [
- false,
- 'rules.lang is deprecated. Received [always, eng]'
- ]);
-});
diff --git a/@commitlint/rules/src/subject-case.js b/@commitlint/rules/src/subject-case.js
index 519029735b..5f2ad8fdd7 100644
--- a/@commitlint/rules/src/subject-case.js
+++ b/@commitlint/rules/src/subject-case.js
@@ -6,7 +6,7 @@ const negated = when => when === 'never';
export default (parsed, when, value) => {
const {subject} = parsed;
- if (typeof subject !== 'string') {
+ if (typeof subject !== 'string' || !subject.match(/^[a-z]/i)) {
return [true];
}
diff --git a/@commitlint/rules/src/subject-case.test.js b/@commitlint/rules/src/subject-case.test.js
index 8add629847..a915234706 100644
--- a/@commitlint/rules/src/subject-case.test.js
+++ b/@commitlint/rules/src/subject-case.test.js
@@ -4,6 +4,7 @@ import subjectCase from './subject-case';
const messages = {
empty: 'test:\n',
+ numeric: 'test: 1.0.0',
lowercase: 'test: subject',
mixedcase: 'test: sUbJeCt',
uppercase: 'test: SUBJECT',
@@ -16,6 +17,7 @@ const messages = {
const parsed = {
empty: parse(messages.empty),
+ numeric: parse(messages.numeric),
lowercase: parse(messages.lowercase),
mixedcase: parse(messages.mixedcase),
uppercase: parse(messages.uppercase),
@@ -324,3 +326,27 @@ test('with uppercase scope should fail for "never [uppercase, lowercase]"', asyn
const expected = false;
t.is(actual, expected);
});
+
+test('with numeric subject should succeed for "never lowercase"', async t => {
+ const [actual] = subjectCase(await parsed.numeric, 'never', 'lowercase');
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with numeric subject should succeed for "always lowercase"', async t => {
+ const [actual] = subjectCase(await parsed.numeric, 'always', 'lowercase');
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with numeric subject should succeed for "never uppercase"', async t => {
+ const [actual] = subjectCase(await parsed.numeric, 'never', 'uppercase');
+ const expected = true;
+ t.is(actual, expected);
+});
+
+test('with numeric subject should succeed for "always uppercase"', async t => {
+ const [actual] = subjectCase(await parsed.numeric, 'always', 'uppercase');
+ const expected = true;
+ t.is(actual, expected);
+});
diff --git a/@commitlint/rules/src/subject-empty.js b/@commitlint/rules/src/subject-empty.js
index 26fe375668..707947f2a3 100644
--- a/@commitlint/rules/src/subject-empty.js
+++ b/@commitlint/rules/src/subject-empty.js
@@ -7,6 +7,6 @@ export default (parsed, when) => {
return [
negated ? notEmpty : !notEmpty,
- message(['message', negated ? 'may not' : 'must', 'be empty'])
+ message(['subject', negated ? 'may not' : 'must', 'be empty'])
];
};
diff --git a/@commitlint/rules/src/subject-full-stop.js b/@commitlint/rules/src/subject-full-stop.js
index b410f509f0..010a8f4c54 100644
--- a/@commitlint/rules/src/subject-full-stop.js
+++ b/@commitlint/rules/src/subject-full-stop.js
@@ -12,6 +12,6 @@ export default (parsed, when, value) => {
return [
negated ? !hasStop : hasStop,
- message(['message', negated ? 'may not' : 'must', 'end with full stop'])
+ message(['subject', negated ? 'may not' : 'must', 'end with full stop'])
];
};
diff --git a/@commitlint/rules/src/subject-max-length.js b/@commitlint/rules/src/subject-max-length.js
index 2a810bed73..ba0f03e49c 100644
--- a/@commitlint/rules/src/subject-max-length.js
+++ b/@commitlint/rules/src/subject-max-length.js
@@ -9,6 +9,6 @@ export default (parsed, when, value) => {
return [
maxLength(input, value),
- `footer must not be longer than ${value} characters`
+ `subject must not be longer than ${value} characters`
];
};
diff --git a/@commitlint/rules/src/subject-tense.js b/@commitlint/rules/src/subject-tense.js
deleted file mode 100644
index 68ea82cba6..0000000000
--- a/@commitlint/rules/src/subject-tense.js
+++ /dev/null
@@ -1,8 +0,0 @@
-export default (parsed, when, value) => {
- return [
- false,
- `rules.subject-tense is deprecated. Received [${when}, [${value.join(
- ', '
- )}]]`
- ];
-};
diff --git a/@commitlint/rules/src/subject-tense.test.js b/@commitlint/rules/src/subject-tense.test.js
deleted file mode 100644
index 9e537a9e21..0000000000
--- a/@commitlint/rules/src/subject-tense.test.js
+++ /dev/null
@@ -1,13 +0,0 @@
-import test from 'ava';
-import parse from '@commitlint/parse';
-import subjectTense from './subject-tense';
-
-test('returns deprecation warning', async t => {
- const actual = subjectTense(await parse('test: '), 'always', [
- 'present-imperative'
- ]);
- t.deepEqual(actual, [
- false,
- 'rules.subject-tense is deprecated. Received [always, [present-imperative]]'
- ]);
-});
diff --git a/@commitlint/to-lines/CHANGELOG.md b/@commitlint/to-lines/CHANGELOG.md
index 9dae87e422..64cbbde283 100644
--- a/@commitlint/to-lines/CHANGELOG.md
+++ b/@commitlint/to-lines/CHANGELOG.md
@@ -3,8 +3,43 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/to-lines
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/to-lines
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/to-lines
+
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
@@ -12,7 +47,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/to-lines
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
@@ -20,7 +55,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/to-lines
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
@@ -28,7 +63,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/to-lines
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
@@ -36,7 +71,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/to-lines
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
@@ -44,7 +79,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/to-lines
-# [6.0.0](https://github.com/marionebl/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
+# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
diff --git a/@commitlint/to-lines/license.md b/@commitlint/to-lines/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@commitlint/to-lines/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@commitlint/to-lines/package.json b/@commitlint/to-lines/package.json
index cca63bf0ad..b9a3d8442b 100644
--- a/@commitlint/to-lines/package.json
+++ b/@commitlint/to-lines/package.json
@@ -1,6 +1,6 @@
{
"name": "@commitlint/to-lines",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Lint your commit messages",
"main": "lib/index.js",
"files": [
@@ -11,7 +11,6 @@
"clean": "npx rimraf lib",
"deps": "dep-check",
"pkg": "pkg-check",
- "lint": "xo",
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
"test": "ava -c 4 --verbose",
"watch": "babel src --out-dir lib --watch --source-maps"
@@ -35,18 +34,17 @@
"babel-preset-commitlint"
]
},
- "xo": false,
"engines": {
"node": ">=4"
},
"repository": {
"type": "git",
- "url": "https://github.com/marionebl/commitlint.git"
+ "url": "https://github.com/conventional-changelog/commitlint.git"
},
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"keywords": [
"conventional-changelog",
"commitlint",
@@ -59,16 +57,15 @@
},
"license": "MIT",
"devDependencies": {
- "@commitlint/parse": "^7.0.0",
- "@commitlint/test": "^7.0.0",
- "@commitlint/utils": "^7.0.0",
+ "@commitlint/parse": "^7.5.0",
+ "@commitlint/test": "^7.5.0",
+ "@commitlint/utils": "^7.5.0",
"ava": "0.22.0",
"babel-cli": "6.26.0",
- "babel-preset-commitlint": "^7.0.0",
+ "babel-preset-commitlint": "^7.5.0",
"babel-register": "6.26.0",
"concurrently": "3.5.1",
"cross-env": "5.1.1",
- "rimraf": "2.6.1",
- "xo": "0.20.3"
+ "rimraf": "2.6.1"
}
}
diff --git a/@commitlint/top-level/CHANGELOG.md b/@commitlint/top-level/CHANGELOG.md
index d3890eacb3..5c03ca0ecd 100644
--- a/@commitlint/top-level/CHANGELOG.md
+++ b/@commitlint/top-level/CHANGELOG.md
@@ -3,8 +3,43 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/top-level
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/top-level
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/top-level
+
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
@@ -12,7 +47,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/top-level
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
@@ -20,18 +55,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/top-level
-## [6.0.5](https://github.com/marionebl/commitlint/compare/v6.0.4...v6.0.5) (2018-01-31)
+## [6.0.5](https://github.com/conventional-changelog/commitlint/compare/v6.0.4...v6.0.5) (2018-01-31)
### Bug Fixes
-* remove utils from prod dependencies ([4fb858a](https://github.com/marionebl/commitlint/commit/4fb858a))
+* remove utils from prod dependencies ([4fb858a](https://github.com/conventional-changelog/commitlint/commit/4fb858a))
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
@@ -39,7 +74,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/top-level
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
@@ -47,7 +82,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/top-level
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
@@ -55,7 +90,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/top-level
-# [6.0.0](https://github.com/marionebl/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
+# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
diff --git a/@commitlint/top-level/license.md b/@commitlint/top-level/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@commitlint/top-level/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@commitlint/top-level/package.json b/@commitlint/top-level/package.json
index ad2d57e919..bf2dc5035c 100644
--- a/@commitlint/top-level/package.json
+++ b/@commitlint/top-level/package.json
@@ -1,6 +1,6 @@
{
"name": "@commitlint/top-level",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Lint your commit messages",
"main": "lib/index.js",
"files": [
@@ -11,7 +11,6 @@
"clean": "npx rimraf lib",
"deps": "dep-check",
"pkg": "pkg-check",
- "lint": "xo",
"start": "yarn watch",
"watch": "babel src --out-dir lib --watch --source-maps"
},
@@ -20,18 +19,17 @@
"babel-preset-commitlint"
]
},
- "xo": false,
"engines": {
"node": ">=4"
},
"repository": {
"type": "git",
- "url": "https://github.com/marionebl/commitlint.git"
+ "url": "https://github.com/conventional-changelog/commitlint.git"
},
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"keywords": [
"conventional-changelog",
"commitlint",
@@ -44,13 +42,12 @@
},
"license": "MIT",
"devDependencies": {
- "@commitlint/utils": "^7.0.0",
+ "@commitlint/utils": "^7.5.0",
"babel-cli": "6.26.0",
- "babel-preset-commitlint": "^7.0.0",
+ "babel-preset-commitlint": "^7.5.0",
"babel-register": "6.26.0",
"cross-env": "5.1.1",
- "rimraf": "2.6.1",
- "xo": "0.20.3"
+ "rimraf": "2.6.1"
},
"dependencies": {
"find-up": "^2.1.0"
diff --git a/@commitlint/travis-cli/CHANGELOG.md b/@commitlint/travis-cli/CHANGELOG.md
index 7822044978..af36411762 100644
--- a/@commitlint/travis-cli/CHANGELOG.md
+++ b/@commitlint/travis-cli/CHANGELOG.md
@@ -3,8 +3,83 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+
+
+
+
+
+# [7.4.0](https://github.com/conventional-changelog/commitlint/compare/v7.3.2...v7.4.0) (2019-01-27)
+
+
+
+
+**Note:** Version bump only for package @commitlint/travis-cli
+
+
+## [7.3.2](https://github.com/conventional-changelog/commitlint/compare/v7.3.1...v7.3.2) (2019-01-15)
+
+
+
+
+**Note:** Version bump only for package @commitlint/travis-cli
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/travis-cli
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/travis-cli
+
+
+## [7.2.1](https://github.com/conventional-changelog/commitlint/compare/v7.2.0...v7.2.1) (2018-10-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/travis-cli
+
+
+# [7.2.0](https://github.com/conventional-changelog/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05)
+
+
+
+
+**Note:** Version bump only for package @commitlint/travis-cli
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/travis-cli
+
+
+# [7.1.0](https://github.com/conventional-changelog/commitlint/compare/v7.0.1...v7.1.0) (2018-08-29)
+
+
+
+
+**Note:** Version bump only for package @commitlint/travis-cli
+
-# [6.2.0](https://github.com/marionebl/commitlint/compare/v6.1.3...v6.2.0) (2018-05-01)
+# [6.2.0](https://github.com/conventional-changelog/commitlint/compare/v6.1.3...v6.2.0) (2018-05-01)
@@ -12,7 +87,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/travis-cli
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
@@ -20,7 +95,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/travis-cli
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
@@ -28,7 +103,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/travis-cli
-## [6.0.5](https://github.com/marionebl/commitlint/compare/v6.0.4...v6.0.5) (2018-01-31)
+## [6.0.5](https://github.com/conventional-changelog/commitlint/compare/v6.0.4...v6.0.5) (2018-01-31)
@@ -36,7 +111,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/travis-cli
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
@@ -44,7 +119,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/travis-cli
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
@@ -52,7 +127,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/travis-cli
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
@@ -60,7 +135,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/travis-cli
-## [6.0.1](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.1) (2018-01-09)
+## [6.0.1](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.1) (2018-01-09)
@@ -68,7 +143,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/travis-cli
-# [6.0.0](https://github.com/marionebl/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
+# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
@@ -76,7 +151,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/travis-cli
-## [5.2.6](https://github.com/marionebl/commitlint/compare/v5.2.5...v5.2.6) (2017-12-21)
+## [5.2.6](https://github.com/conventional-changelog/commitlint/compare/v5.2.5...v5.2.6) (2017-12-21)
@@ -84,7 +159,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/travis-cli
-## [5.2.5](https://github.com/marionebl/commitlint/compare/v5.2.4...v5.2.5) (2017-12-08)
+## [5.2.5](https://github.com/conventional-changelog/commitlint/compare/v5.2.4...v5.2.5) (2017-12-08)
@@ -92,7 +167,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/travis-cli
-## [5.2.4](https://github.com/marionebl/commitlint/compare/v5.2.3...v5.2.4) (2017-12-08)
+## [5.2.4](https://github.com/conventional-changelog/commitlint/compare/v5.2.3...v5.2.4) (2017-12-08)
@@ -100,7 +175,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/travis-cli
-## [5.2.3](https://github.com/marionebl/commitlint/compare/v5.2.2...v5.2.3) (2017-12-05)
+## [5.2.3](https://github.com/conventional-changelog/commitlint/compare/v5.2.2...v5.2.3) (2017-12-05)
@@ -108,40 +183,40 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/travis-cli
-## [5.2.2](https://github.com/marionebl/commitlint/compare/v5.2.1...v5.2.2) (2017-11-30)
+## [5.2.2](https://github.com/conventional-changelog/commitlint/compare/v5.2.1...v5.2.2) (2017-11-30)
### Bug Fixes
-* **travis-cli:** read push commits directly ([9bc56c6](https://github.com/marionebl/commitlint/commit/9bc56c6))
+* **travis-cli:** read push commits directly ([9bc56c6](https://github.com/conventional-changelog/commitlint/commit/9bc56c6))
-## [5.2.1](https://github.com/marionebl/commitlint/compare/v5.2.0...v5.2.1) (2017-11-30)
+## [5.2.1](https://github.com/conventional-changelog/commitlint/compare/v5.2.0...v5.2.1) (2017-11-30)
### Bug Fixes
-* **travis-cli:** lint ranges only for pr builds ([85b201f](https://github.com/marionebl/commitlint/commit/85b201f))
+* **travis-cli:** lint ranges only for pr builds ([85b201f](https://github.com/conventional-changelog/commitlint/commit/85b201f))
-# [5.2.0](https://github.com/marionebl/commitlint/compare/v5.1.3...v5.2.0) (2017-11-30)
+# [5.2.0](https://github.com/conventional-changelog/commitlint/compare/v5.1.3...v5.2.0) (2017-11-30)
### Bug Fixes
-* consider pull requests from forks ([4653c2c](https://github.com/marionebl/commitlint/commit/4653c2c))
+* consider pull requests from forks ([4653c2c](https://github.com/conventional-changelog/commitlint/commit/4653c2c))
-## [5.1.1](https://github.com/marionebl/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
+## [5.1.1](https://github.com/conventional-changelog/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
@@ -149,9 +224,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/travis-cli
-# [5.1.0](https://github.com/marionebl/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
+# [5.1.0](https://github.com/conventional-changelog/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
### Features
-* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/marionebl/commitlint/commit/3e6e6a8))
+* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/conventional-changelog/commitlint/commit/3e6e6a8))
diff --git a/@commitlint/travis-cli/license.md b/@commitlint/travis-cli/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@commitlint/travis-cli/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@commitlint/travis-cli/package.json b/@commitlint/travis-cli/package.json
index d7667d049a..54da3e9817 100644
--- a/@commitlint/travis-cli/package.json
+++ b/@commitlint/travis-cli/package.json
@@ -1,6 +1,6 @@
{
"name": "@commitlint/travis-cli",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Lint all relevant commits for a change or PR on Travis CI",
"files": [
"lib/"
@@ -13,7 +13,6 @@
"clean": "npx rimraf lib",
"deps": "dep-check",
"pkg": "pkg-check --skip-main",
- "lint": "xo",
"start": "ava -c 4 --verbose --watch",
"test": "ava -c 4 --verbose",
"watch": "babel src --out-dir lib --watch --source-maps"
@@ -35,18 +34,17 @@
"babel-preset-commitlint"
]
},
- "xo": false,
"engines": {
"node": ">=4"
},
"repository": {
"type": "git",
- "url": "https://github.com/marionebl/commitlint.git"
+ "url": "https://github.com/conventional-changelog/commitlint.git"
},
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"keywords": [
"conventional-changelog",
"commitlint",
@@ -58,17 +56,17 @@
},
"license": "MIT",
"devDependencies": {
- "@commitlint/test": "^7.0.0",
- "@commitlint/utils": "^7.0.0",
+ "@commitlint/test": "^7.5.0",
+ "@commitlint/utils": "^7.5.0",
"ava": "0.18.2",
"babel-cli": "6.26.0",
- "babel-preset-commitlint": "^7.0.0",
+ "babel-preset-commitlint": "^7.5.0",
"babel-register": "6.26.0",
"cross-env": "5.1.1",
"which": "1.3.0"
},
"dependencies": {
- "@commitlint/cli": "^7.0.0",
+ "@commitlint/cli": "^7.5.0",
"babel-runtime": "6.26.0",
"execa": "0.9.0"
}
diff --git a/@commitlint/travis-cli/src/cli.test.js b/@commitlint/travis-cli/src/cli.test.js
index 3d48822bc3..78800ac0f5 100644
--- a/@commitlint/travis-cli/src/cli.test.js
+++ b/@commitlint/travis-cli/src/cli.test.js
@@ -75,7 +75,7 @@ test.failing('should call git with expected args on shallow repo', async t => {
return;
}
- const cwd = await git.clone('https://github.com/marionebl/commitlint.git', [
+ const cwd = await git.clone('https://github.com/conventional-changelog/commitlint.git', [
'--depth=10'
]);
@@ -151,7 +151,7 @@ test.failing(
return;
}
- const cwd = await git.clone('https://github.com/marionebl/commitlint.git');
+ const cwd = await git.clone('https://github.com/conventional-changelog/commitlint.git');
const env = {
TRAVIS: true,
diff --git a/@packages/babel-preset-commitlint/CHANGELOG.md b/@packages/babel-preset-commitlint/CHANGELOG.md
index 814cb03487..9940bb42cf 100644
--- a/@packages/babel-preset-commitlint/CHANGELOG.md
+++ b/@packages/babel-preset-commitlint/CHANGELOG.md
@@ -3,8 +3,46 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package babel-preset-commitlint
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+### Bug Fixes
+
+* update to security-patched dependency versions ([97c033b](https://github.com/conventional-changelog/commitlint/commit/97c033b))
+
+
+
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package babel-preset-commitlint
+
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
@@ -12,7 +50,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package babel-preset-commitlint
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
@@ -20,7 +58,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package babel-preset-commitlint
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
@@ -28,7 +66,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package babel-preset-commitlint
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
@@ -36,7 +74,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package babel-preset-commitlint
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
@@ -44,18 +82,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package babel-preset-commitlint
-# [5.2.0](https://github.com/marionebl/commitlint/compare/v5.1.3...v5.2.0) (2017-11-30)
+# [5.2.0](https://github.com/conventional-changelog/commitlint/compare/v5.1.3...v5.2.0) (2017-11-30)
### Features
-* **babel-preset-commitlint:** add jsx tranform ([#163](https://github.com/marionebl/commitlint/issues/163)) ([5190241](https://github.com/marionebl/commitlint/commit/5190241))
+* **babel-preset-commitlint:** add jsx tranform ([#163](https://github.com/conventional-changelog/commitlint/issues/163)) ([5190241](https://github.com/conventional-changelog/commitlint/commit/5190241))
-## [5.1.1](https://github.com/marionebl/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
+## [5.1.1](https://github.com/conventional-changelog/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
@@ -63,18 +101,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package babel-preset-commitlint
-# [5.1.0](https://github.com/marionebl/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
+# [5.1.0](https://github.com/conventional-changelog/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
### Features
-* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/marionebl/commitlint/commit/3e6e6a8))
+* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/conventional-changelog/commitlint/commit/3e6e6a8))
-## [5.0.1](https://github.com/marionebl/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
+## [5.0.1](https://github.com/conventional-changelog/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
@@ -82,7 +120,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package babel-preset-commitlint
-## [4.2.1](https://github.com/marionebl/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
+## [4.2.1](https://github.com/conventional-changelog/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
@@ -90,7 +128,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package babel-preset-commitlint
-# [4.2.0](https://github.com/marionebl/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
+# [4.2.0](https://github.com/conventional-changelog/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
diff --git a/@packages/babel-preset-commitlint/index.js b/@packages/babel-preset-commitlint/index.js
index 09dc27cbf8..6271fc6542 100644
--- a/@packages/babel-preset-commitlint/index.js
+++ b/@packages/babel-preset-commitlint/index.js
@@ -1,7 +1,6 @@
const addModuleExports = require('babel-plugin-add-module-exports');
const fastAsync = require('fast-async');
const jsx = require('babel-plugin-transform-react-jsx');
-const istanbul = require('babel-plugin-istanbul').default;
const transformRuntime = require('babel-plugin-transform-runtime').default;
const env = require('babel-preset-env').default;
@@ -18,7 +17,7 @@ function preset() {
return {
env: {
development: {
- plugins: plugins.concat([istanbul])
+ plugins
}
},
plugins,
diff --git a/@packages/babel-preset-commitlint/index.test.js b/@packages/babel-preset-commitlint/index.test.js
index 466db35f64..b125c38b85 100644
--- a/@packages/babel-preset-commitlint/index.test.js
+++ b/@packages/babel-preset-commitlint/index.test.js
@@ -16,10 +16,12 @@ test('succeeds for a simple babel transformation', t => {
test('produces valid values in plugins', t => {
const config = preset();
- t.true(config.plugins.every(plugin => {
- if (Array.isArray(plugin)) {
- return typeof plugin[0] === 'function';
- }
- return typeof plugin === 'function';
- }));
+ t.true(
+ config.plugins.every(plugin => {
+ if (Array.isArray(plugin)) {
+ return typeof plugin[0] === 'function';
+ }
+ return typeof plugin === 'function';
+ })
+ );
});
diff --git a/@packages/babel-preset-commitlint/license.md b/@packages/babel-preset-commitlint/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@packages/babel-preset-commitlint/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@packages/babel-preset-commitlint/package.json b/@packages/babel-preset-commitlint/package.json
index dee788069d..b5a70d9dc3 100644
--- a/@packages/babel-preset-commitlint/package.json
+++ b/@packages/babel-preset-commitlint/package.json
@@ -1,6 +1,6 @@
{
"name": "babel-preset-commitlint",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Lint your commit messages",
"main": "index.js",
"files": [
@@ -9,7 +9,6 @@
"scripts": {
"deps": "dep-check",
"pkg": "pkg-check",
- "lint": "xo",
"start": "ava --watch --verbose",
"test": "ava --verbose"
},
@@ -19,7 +18,6 @@
"*.test.js"
]
},
- "xo": false,
"nyc": {
"all": true,
"sourceMap": false,
@@ -33,12 +31,12 @@
},
"repository": {
"type": "git",
- "url": "https://github.com/marionebl/commitlint.git"
+ "url": "https://github.com/conventional-changelog/commitlint.git"
},
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"keywords": [
"babel",
"conventional-changelog",
@@ -51,14 +49,12 @@
},
"license": "MIT",
"devDependencies": {
- "@commitlint/utils": "^7.0.0",
+ "@commitlint/utils": "^7.5.0",
"ava": "0.22.0",
- "babel-core": "6.26.0",
- "xo": "0.20.3"
+ "babel-core": "6.26.0"
},
"dependencies": {
"babel-plugin-add-module-exports": "^0.2.1",
- "babel-plugin-istanbul": "^4.1.4",
"babel-plugin-transform-react-jsx": "^6.24.1",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.0",
diff --git a/@packages/test/CHANGELOG.md b/@packages/test/CHANGELOG.md
index 6cb6983856..7819a1092b 100644
--- a/@packages/test/CHANGELOG.md
+++ b/@packages/test/CHANGELOG.md
@@ -3,8 +3,43 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/test
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/test
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/test
+
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
@@ -12,7 +47,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/test
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
@@ -20,7 +55,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/test
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
@@ -28,7 +63,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/test
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
@@ -36,7 +71,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/test
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
@@ -44,7 +79,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/test
-# [6.0.0](https://github.com/marionebl/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
+# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
@@ -52,7 +87,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/test
-## [5.2.6](https://github.com/marionebl/commitlint/compare/v5.2.5...v5.2.6) (2017-12-21)
+## [5.2.6](https://github.com/conventional-changelog/commitlint/compare/v5.2.5...v5.2.6) (2017-12-21)
@@ -60,7 +95,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/test
-# [5.2.0](https://github.com/marionebl/commitlint/compare/v5.1.3...v5.2.0) (2017-11-30)
+# [5.2.0](https://github.com/conventional-changelog/commitlint/compare/v5.1.3...v5.2.0) (2017-11-30)
@@ -68,7 +103,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/test
-## [5.1.1](https://github.com/marionebl/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
+## [5.1.1](https://github.com/conventional-changelog/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
@@ -76,34 +111,34 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/test
-# [5.1.0](https://github.com/marionebl/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
+# [5.1.0](https://github.com/conventional-changelog/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
### Bug Fixes
-* update dependency concurrently to v3.5.1 ([#147](https://github.com/marionebl/commitlint/issues/147)) ([a809d0f](https://github.com/marionebl/commitlint/commit/a809d0f))
+* update dependency concurrently to v3.5.1 ([#147](https://github.com/conventional-changelog/commitlint/issues/147)) ([a809d0f](https://github.com/conventional-changelog/commitlint/commit/a809d0f))
### Features
-* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/marionebl/commitlint/commit/3e6e6a8))
+* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/conventional-changelog/commitlint/commit/3e6e6a8))
-## [5.0.1](https://github.com/marionebl/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
+## [5.0.1](https://github.com/conventional-changelog/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
### Bug Fixes
-* **core:** fall back to globally installed config if available ([#127](https://github.com/marionebl/commitlint/issues/127)) ([8612eb3](https://github.com/marionebl/commitlint/commit/8612eb3))
+* **core:** fall back to globally installed config if available ([#127](https://github.com/conventional-changelog/commitlint/issues/127)) ([8612eb3](https://github.com/conventional-changelog/commitlint/commit/8612eb3))
-# [4.3.0](https://github.com/marionebl/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
+# [4.3.0](https://github.com/conventional-changelog/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
@@ -111,18 +146,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/test
-## [4.2.1](https://github.com/marionebl/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
+## [4.2.1](https://github.com/conventional-changelog/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
### Bug Fixes
-* **core:** consider config outside of current git repo ([f7234b6](https://github.com/marionebl/commitlint/commit/f7234b6))
+* **core:** consider config outside of current git repo ([f7234b6](https://github.com/conventional-changelog/commitlint/commit/f7234b6))
-# [4.2.0](https://github.com/marionebl/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
+# [4.2.0](https://github.com/conventional-changelog/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
@@ -130,7 +165,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/test
-## [4.1.1](https://github.com/marionebl/commitlint/compare/v4.1.0...v4.1.1) (2017-10-09)
+## [4.1.1](https://github.com/conventional-changelog/commitlint/compare/v4.1.0...v4.1.1) (2017-10-09)
diff --git a/@packages/test/license.md b/@packages/test/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@packages/test/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@packages/test/package.json b/@packages/test/package.json
index fc39f5d53b..e26fcb1659 100644
--- a/@packages/test/package.json
+++ b/@packages/test/package.json
@@ -1,6 +1,6 @@
{
"name": "@commitlint/test",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "test utilities for @commitlint",
"main": "lib/",
"files": [
@@ -11,7 +11,6 @@
"clean": "npx rimraf lib",
"deps": "dep-check",
"pkg": "pkg-check --skip-import",
- "lint": "xo",
"start": "concurrently \"ava --watch --verbose\" \"yarn run watch\"",
"test": "ava --verbose",
"watch": "babel src --out-dir lib --watch --source-maps"
@@ -35,18 +34,17 @@
"babel-preset-commitlint"
]
},
- "xo": false,
"engines": {
"node": ">=4"
},
"repository": {
"type": "git",
- "url": "https://github.com/marionebl/commitlint.git"
+ "url": "https://github.com/conventional-changelog/commitlint.git"
},
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"keywords": [
"conventional-changelog",
"commitlint",
@@ -58,20 +56,19 @@
},
"license": "MIT",
"dependencies": {
- "@commitlint/utils": "^7.0.0",
+ "@commitlint/utils": "^7.5.0",
"@marionebl/sander": "0.6.1",
"execa": "0.9.0",
"pkg-dir": "2.0.0"
},
"devDependencies": {
- "@commitlint/utils": "^7.0.0",
+ "@commitlint/utils": "^7.5.0",
"ava": "0.22.0",
"babel-cli": "6.26.0",
- "babel-preset-commitlint": "^7.0.0",
+ "babel-preset-commitlint": "^7.5.0",
"babel-register": "6.26.0",
"concurrently": "3.5.1",
"cross-env": "5.1.1",
- "rimraf": "2.6.1",
- "xo": "0.18.2"
+ "rimraf": "2.6.1"
}
}
diff --git a/@packages/utils/CHANGELOG.md b/@packages/utils/CHANGELOG.md
index 9df41f097a..271da77d93 100644
--- a/@packages/utils/CHANGELOG.md
+++ b/@packages/utils/CHANGELOG.md
@@ -3,8 +3,47 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+* store concatenated array to problems variable ([#551](https://github.com/conventional-changelog/commitlint/issues/551)) ([434a70f](https://github.com/conventional-changelog/commitlint/commit/434a70f))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/utils
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+### Bug Fixes
+
+* update to security-patched dependency versions ([97c033b](https://github.com/conventional-changelog/commitlint/commit/97c033b))
+
+
+
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/utils
+
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
@@ -12,7 +51,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/utils
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
@@ -20,18 +59,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/utils
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
### Bug Fixes
-* remove faulty bin entry [#259](https://github.com/marionebl/commitlint/issues/259) ([beafbc6](https://github.com/marionebl/commitlint/commit/beafbc6))
+* remove faulty bin entry [#259](https://github.com/conventional-changelog/commitlint/issues/259) ([beafbc6](https://github.com/conventional-changelog/commitlint/commit/beafbc6))
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
@@ -39,7 +78,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/utils
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
@@ -47,7 +86,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/utils
-## [5.1.1](https://github.com/marionebl/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
+## [5.1.1](https://github.com/conventional-changelog/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
@@ -55,18 +94,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/utils
-# [5.1.0](https://github.com/marionebl/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
+# [5.1.0](https://github.com/conventional-changelog/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
### Features
-* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/marionebl/commitlint/commit/3e6e6a8))
+* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/conventional-changelog/commitlint/commit/3e6e6a8))
-## [5.0.1](https://github.com/marionebl/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
+## [5.0.1](https://github.com/conventional-changelog/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
@@ -74,7 +113,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/utils
-## [4.2.1](https://github.com/marionebl/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
+## [4.2.1](https://github.com/conventional-changelog/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
@@ -82,7 +121,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/utils
-# [4.2.0](https://github.com/marionebl/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
+# [4.2.0](https://github.com/conventional-changelog/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
@@ -100,7 +139,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Bug Fixes
-* **utils:** better cross-version support ([856f3da](https://github.com/marionebl/commitlint/commit/856f3da))
+* **utils:** better cross-version support ([856f3da](https://github.com/conventional-changelog/commitlint/commit/856f3da))
@@ -111,7 +150,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Bug Fixes
-* **utils:** better cross-version support ([856f3da](https://github.com/marionebl/commitlint/commit/856f3da))
+* **utils:** better cross-version support ([856f3da](https://github.com/conventional-changelog/commitlint/commit/856f3da))
@@ -122,7 +161,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Bug Fixes
-* **utils:** better cross-version support ([856f3da](https://github.com/marionebl/commitlint/commit/856f3da))
+* **utils:** better cross-version support ([856f3da](https://github.com/conventional-changelog/commitlint/commit/856f3da))
@@ -133,4 +172,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Bug Fixes
-* **utils:** better cross-version support ([bc460c8](https://github.com/marionebl/commitlint/commit/bc460c8))
+* **utils:** better cross-version support ([bc460c8](https://github.com/conventional-changelog/commitlint/commit/bc460c8))
diff --git a/@packages/utils/license.md b/@packages/utils/license.md
new file mode 100644
index 0000000000..9f7de65293
--- /dev/null
+++ b/@packages/utils/license.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 - present Mario Nebl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/@packages/utils/package.json b/@packages/utils/package.json
index 45758e9e51..480400ccd7 100644
--- a/@packages/utils/package.json
+++ b/@packages/utils/package.json
@@ -1,6 +1,6 @@
{
"name": "@commitlint/utils",
- "version": "7.0.0",
+ "version": "7.5.0",
"description": "Development utilities for @commitlint",
"files": [
"dep-check.js",
@@ -23,18 +23,17 @@
"cli.test.js"
]
},
- "xo": false,
"engines": {
"node": ">=4"
},
"repository": {
"type": "git",
- "url": "https://github.com/marionebl/commitlint.git"
+ "url": "https://github.com/conventional-changelog/commitlint.git"
},
"bugs": {
- "url": "https://github.com/marionebl/commitlint/issues"
+ "url": "https://github.com/conventional-changelog/commitlint/issues"
},
- "homepage": "https://github.com/marionebl/commitlint#readme",
+ "homepage": "https://github.com/conventional-changelog/commitlint#readme",
"keywords": [
"conventional-changelog",
"commitlint",
@@ -46,17 +45,14 @@
},
"license": "MIT",
"dependencies": {
- "@commitlint/test": "^7.0.0",
+ "@commitlint/test": "^7.5.0",
"@marionebl/sander": "0.6.1",
"execa": "0.9.0",
"is-builtin-module": "2.0.0",
- "lodash.values": "4.3.0",
+ "lodash": "4.17.11",
"meow": "4.0.0",
"read-pkg": "3.0.0",
"require-from-string": "2.0.1",
"tar-fs": "1.16.0"
- },
- "devDependencies": {
- "xo": "0.20.3"
}
}
diff --git a/@packages/utils/pkg-check.js b/@packages/utils/pkg-check.js
index 1b2203ed35..b7dde148fa 100755
--- a/@packages/utils/pkg-check.js
+++ b/@packages/utils/pkg-check.js
@@ -8,8 +8,8 @@ const meow = require('meow');
const readPkg = require('read-pkg');
const requireFromString = require('require-from-string');
const tar = require('tar-fs');
-const values = require('lodash.values');
-const fix = require('@commitlint/test').fix;
+const {values} = require('lodash');
+const {fix} = require('@commitlint/test');
const builtin = require.resolve('is-builtin-module');
@@ -46,10 +46,10 @@ function main(cli) {
return readPkg(cwd).then(pkg => {
return getTarballFiles(cwd, {write: !skipImport}).then(tarball => {
return getPackageFiles(cwd).then(pkgFiles => {
- const problems = [];
+ let problems = [];
if (!cli.flags.skipBin) {
- problems.concat(
+ problems = problems.concat(
pkgFiles.bin
.filter(binFile => tarball.files.indexOf(binFile) === -1)
.map(binFile => ({
@@ -151,8 +151,7 @@ function getArchiveFiles(filePath, options) {
return new Promise((resolve, reject) => {
const files = [];
- fs
- .createReadStream(filePath)
+ fs.createReadStream(filePath)
.pipe(zlib.createGunzip())
.pipe(
tar.extract(path.dirname(filePath), {
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7b38418ba9..54bdcdad2b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,93 +3,230 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
+
+
+### Bug Fixes
+
+* `sentence-case` allow upper-case characters in first word ([#531](https://github.com/conventional-changelog/commitlint/issues/531)) ([5a6a4a8](https://github.com/conventional-changelog/commitlint/commit/5a6a4a8)), closes [#211](https://github.com/conventional-changelog/commitlint/issues/211)
+* **resolve-extends:** override array on extending rules ([#470](https://github.com/conventional-changelog/commitlint/issues/470)) ([#539](https://github.com/conventional-changelog/commitlint/issues/539)) ([b35000c](https://github.com/conventional-changelog/commitlint/commit/b35000c))
+* all broken website references ([#564](https://github.com/conventional-changelog/commitlint/issues/564)) ([82eeb5a](https://github.com/conventional-changelog/commitlint/commit/82eeb5a))
+* cleanup message for input with no config ([#519](https://github.com/conventional-changelog/commitlint/issues/519)) ([7d9e760](https://github.com/conventional-changelog/commitlint/commit/7d9e760))
+* **cli:** avoid linebreak in empty input ([#523](https://github.com/conventional-changelog/commitlint/issues/523)) ([3141882](https://github.com/conventional-changelog/commitlint/commit/3141882))
+* mark optional parameter with undefined ([#553](https://github.com/conventional-changelog/commitlint/issues/553)) ([6720284](https://github.com/conventional-changelog/commitlint/commit/6720284))
+* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
+* replace all website references with conventional changelog ([#563](https://github.com/conventional-changelog/commitlint/issues/563)) ([6b86fb1](https://github.com/conventional-changelog/commitlint/commit/6b86fb1))
+* replace old require-uncached with import-fresh ([#533](https://github.com/conventional-changelog/commitlint/issues/533)) ([b636e8c](https://github.com/conventional-changelog/commitlint/commit/b636e8c))
+* resolve path to commit message for git submodules ([83b1a47](https://github.com/conventional-changelog/commitlint/commit/83b1a47))
+* slash in scope [#291](https://github.com/conventional-changelog/commitlint/issues/291) ([#529](https://github.com/conventional-changelog/commitlint/issues/529)) ([b2b63e5](https://github.com/conventional-changelog/commitlint/commit/b2b63e5))
+* store concatenated array to problems variable ([#551](https://github.com/conventional-changelog/commitlint/issues/551)) ([434a70f](https://github.com/conventional-changelog/commitlint/commit/434a70f))
+
+
+### Features
+
+* add support for git submodules ([cc575fa](https://github.com/conventional-changelog/commitlint/commit/cc575fa))
+* **rule-header-length:** show current header length ([6d61c4f](https://github.com/conventional-changelog/commitlint/commit/6d61c4f))
+
+
+
+
+
+# [7.4.0](https://github.com/conventional-changelog/commitlint/compare/v7.3.2...v7.4.0) (2019-01-27)
+
+
+### Bug Fixes
+
+* correction to need help link ([#540](https://github.com/conventional-changelog/commitlint/issues/540)) ([fa6168a](https://github.com/conventional-changelog/commitlint/commit/fa6168a))
+
+
+### Features
+
+* **rules:** create header-case and header-full-stop rules ([#547](https://github.com/conventional-changelog/commitlint/issues/547)) ([4c36cbd](https://github.com/conventional-changelog/commitlint/commit/4c36cbd))
+
+
+
+
+
+## [7.3.2](https://github.com/conventional-changelog/commitlint/compare/v7.3.1...v7.3.2) (2019-01-15)
+
+
+### Bug Fixes
+
+* move loadsh to dependencies ([1bb66a4](https://github.com/conventional-changelog/commitlint/commit/1bb66a4))
+
+
+
+
+
+## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
+
+
+
+
+**Note:** Version bump only for package @commitlint/root
+
+
+# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
+
+
+### Bug Fixes
+
+* **format:** add new line to result ([#518](https://github.com/conventional-changelog/commitlint/issues/518)) ([f1d443b](https://github.com/conventional-changelog/commitlint/commit/f1d443b)), closes [#504](https://github.com/conventional-changelog/commitlint/issues/504)
+* add fallback with husky git params to deprecation handling ([#498](https://github.com/conventional-changelog/commitlint/issues/498)) ([5a34b8c](https://github.com/conventional-changelog/commitlint/commit/5a34b8c))
+* avoid truncated output on macOS ([#503](https://github.com/conventional-changelog/commitlint/issues/503)) ([3192368](https://github.com/conventional-changelog/commitlint/commit/3192368))
+* fall back to conventional commit-parser settings for missing keys ([#496](https://github.com/conventional-changelog/commitlint/issues/496)) ([831a141](https://github.com/conventional-changelog/commitlint/commit/831a141)), closes [#399](https://github.com/conventional-changelog/commitlint/issues/399)
+* respect String.protoype.repeat API contract ([f27e7ac](https://github.com/conventional-changelog/commitlint/commit/f27e7ac))
+* update to security-patched dependency versions ([97c033b](https://github.com/conventional-changelog/commitlint/commit/97c033b))
+* use correct label for failing empty subjects ([#481](https://github.com/conventional-changelog/commitlint/issues/481)) ([2e7e34d](https://github.com/conventional-changelog/commitlint/commit/2e7e34d)), closes [#476](https://github.com/conventional-changelog/commitlint/issues/476)
+
+
+### Features
+
+* check stage before entering prompt ([#495](https://github.com/conventional-changelog/commitlint/issues/495)) ([3b3667a](https://github.com/conventional-changelog/commitlint/commit/3b3667a)), closes [#51](https://github.com/conventional-changelog/commitlint/issues/51) [#51](https://github.com/conventional-changelog/commitlint/issues/51)
+* warn on empty config ([#491](https://github.com/conventional-changelog/commitlint/issues/491)) ([b6bd36e](https://github.com/conventional-changelog/commitlint/commit/b6bd36e)), closes [#107](https://github.com/conventional-changelog/commitlint/issues/107) [#107](https://github.com/conventional-changelog/commitlint/issues/107)
+
+
+
+
+
+## [7.2.1](https://github.com/conventional-changelog/commitlint/compare/v7.2.0...v7.2.1) (2018-10-11)
+
+
+### Bug Fixes
+
+* improve format module resolving ([#464](https://github.com/conventional-changelog/commitlint/issues/464)) ([baed8b1](https://github.com/conventional-changelog/commitlint/commit/baed8b1))
+
+
+
+
+
+# [7.2.0](https://github.com/conventional-changelog/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05)
+
+
+### Bug Fixes
+
+* **rules:** include possible body offset in footer leading blank ([ff0111a](https://github.com/conventional-changelog/commitlint/commit/ff0111a))
+* handle case rules for numerics correctly ([cadcfed](https://github.com/conventional-changelog/commitlint/commit/cadcfed))
+* ignore merge messages with text after newline ([b32bc93](https://github.com/conventional-changelog/commitlint/commit/b32bc93))
+* use grouped regex to ignore merge commits ([#439](https://github.com/conventional-changelog/commitlint/issues/439)) ([905e9d5](https://github.com/conventional-changelog/commitlint/commit/905e9d5))
+
+
+### Features
+
+* **cli:** add format option for report output ([1ecf097](https://github.com/conventional-changelog/commitlint/commit/1ecf097))
+* **load:** add formatter option with default value ([b0e63d9](https://github.com/conventional-changelog/commitlint/commit/b0e63d9))
+
+
+
+
+
+## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
+
+
+
+
+**Note:** Version bump only for package @commitlint/root
+
+
+# [7.1.0](https://github.com/conventional-changelog/commitlint/compare/v7.0.1...v7.1.0) (2018-08-29)
+
+
+### Features
+
+* **wildcards:** add new wildcard patterns [#315](https://github.com/conventional-changelog/commitlint/issues/315) ([e9ea17f](https://github.com/conventional-changelog/commitlint/commit/e9ea17f))
+* add max line length to body/footer ([542f50e](https://github.com/conventional-changelog/commitlint/commit/542f50e))
+
+
+
+
-# [6.2.0](https://github.com/marionebl/commitlint/compare/v6.1.3...v6.2.0) (2018-05-01)
+# [6.2.0](https://github.com/conventional-changelog/commitlint/compare/v6.1.3...v6.2.0) (2018-05-01)
### Features
-* print commit message when the message is invalid ([86c34f1](https://github.com/marionebl/commitlint/commit/86c34f1)), closes [#222](https://github.com/marionebl/commitlint/issues/222)
-* **rules:** support array for scope-case and type-case ([#312](https://github.com/marionebl/commitlint/issues/312)) ([1f46b9f](https://github.com/marionebl/commitlint/commit/1f46b9f)), closes [#307](https://github.com/marionebl/commitlint/issues/307)
+* print commit message when the message is invalid ([86c34f1](https://github.com/conventional-changelog/commitlint/commit/86c34f1)), closes [#222](https://github.com/conventional-changelog/commitlint/issues/222)
+* **rules:** support array for scope-case and type-case ([#312](https://github.com/conventional-changelog/commitlint/issues/312)) ([1f46b9f](https://github.com/conventional-changelog/commitlint/commit/1f46b9f)), closes [#307](https://github.com/conventional-changelog/commitlint/issues/307)
-## [6.1.1](https://github.com/marionebl/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
+## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
### Bug Fixes
-* **ensure:** ignore word delimiters for case matching [#291](https://github.com/marionebl/commitlint/issues/291) ([fa69299](https://github.com/marionebl/commitlint/commit/fa69299))
+* **ensure:** ignore word delimiters for case matching [#291](https://github.com/conventional-changelog/commitlint/issues/291) ([fa69299](https://github.com/conventional-changelog/commitlint/commit/fa69299))
-# [6.1.0](https://github.com/marionebl/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
+# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
### Bug Fixes
-* **parse:** default to angular preset for empty parserOpts ([#265](https://github.com/marionebl/commitlint/issues/265)) ([ccb03b4](https://github.com/marionebl/commitlint/commit/ccb03b4)), closes [#262](https://github.com/marionebl/commitlint/issues/262)
+* **parse:** default to angular preset for empty parserOpts ([#265](https://github.com/conventional-changelog/commitlint/issues/265)) ([ccb03b4](https://github.com/conventional-changelog/commitlint/commit/ccb03b4)), closes [#262](https://github.com/conventional-changelog/commitlint/issues/262)
### Features
-* add "--config" option ([#261](https://github.com/marionebl/commitlint/issues/261)) ([2c03ec6](https://github.com/marionebl/commitlint/commit/2c03ec6))
+* add "--config" option ([#261](https://github.com/conventional-changelog/commitlint/issues/261)) ([2c03ec6](https://github.com/conventional-changelog/commitlint/commit/2c03ec6))
-## [6.0.5](https://github.com/marionebl/commitlint/compare/v6.0.4...v6.0.5) (2018-01-31)
+## [6.0.5](https://github.com/conventional-changelog/commitlint/compare/v6.0.4...v6.0.5) (2018-01-31)
### Bug Fixes
-* remove utils from prod dependencies ([4fb858a](https://github.com/marionebl/commitlint/commit/4fb858a))
+* remove utils from prod dependencies ([4fb858a](https://github.com/conventional-changelog/commitlint/commit/4fb858a))
-## [6.0.4](https://github.com/marionebl/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
+## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
### Bug Fixes
-* remove faulty bin entry [#259](https://github.com/marionebl/commitlint/issues/259) ([beafbc6](https://github.com/marionebl/commitlint/commit/beafbc6))
+* remove faulty bin entry [#259](https://github.com/conventional-changelog/commitlint/issues/259) ([beafbc6](https://github.com/conventional-changelog/commitlint/commit/beafbc6))
-## [6.0.3](https://github.com/marionebl/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
+## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
### Bug Fixes
-* update dependency cosmiconfig to ^4.0.0 ([#234](https://github.com/marionebl/commitlint/issues/234)) ([7f94ac5](https://github.com/marionebl/commitlint/commit/7f94ac5))
-* update dependency semver to v5.5.0 ([#236](https://github.com/marionebl/commitlint/issues/236)) ([6c52bd9](https://github.com/marionebl/commitlint/commit/6c52bd9))
+* update dependency cosmiconfig to ^4.0.0 ([#234](https://github.com/conventional-changelog/commitlint/issues/234)) ([7f94ac5](https://github.com/conventional-changelog/commitlint/commit/7f94ac5))
+* update dependency semver to v5.5.0 ([#236](https://github.com/conventional-changelog/commitlint/issues/236)) ([6c52bd9](https://github.com/conventional-changelog/commitlint/commit/6c52bd9))
-## [6.0.2](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
+## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
### Bug Fixes
-* ignore branch merges with multiple newlines ([#227](https://github.com/marionebl/commitlint/issues/227)) ([1f0c5ca](https://github.com/marionebl/commitlint/commit/1f0c5ca))
-* remove typo in error message of type-case ([cb577cb](https://github.com/marionebl/commitlint/commit/cb577cb))
+* ignore branch merges with multiple newlines ([#227](https://github.com/conventional-changelog/commitlint/issues/227)) ([1f0c5ca](https://github.com/conventional-changelog/commitlint/commit/1f0c5ca))
+* remove typo in error message of type-case ([cb577cb](https://github.com/conventional-changelog/commitlint/commit/cb577cb))
-## [6.0.1](https://github.com/marionebl/commitlint/compare/v6.0.0...v6.0.1) (2018-01-09)
+## [6.0.1](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.1) (2018-01-09)
@@ -97,20 +234,20 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @commitlint/root
-# [6.0.0](https://github.com/marionebl/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
+# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
### Bug Fixes
-* allow [0] shorthand ([84cf938](https://github.com/marionebl/commitlint/commit/84cf938))
-* correctly resolve parserOpts [#115](https://github.com/marionebl/commitlint/issues/115) [#95](https://github.com/marionebl/commitlint/issues/95) ([1353dd5](https://github.com/marionebl/commitlint/commit/1353dd5))
-* ignore branch merges with newlines ([#214](https://github.com/marionebl/commitlint/issues/214)) ([c94c4dc](https://github.com/marionebl/commitlint/commit/c94c4dc))
-* sanitize ensure.case [#211](https://github.com/marionebl/commitlint/issues/211) ([#217](https://github.com/marionebl/commitlint/issues/217)) ([03aeefc](https://github.com/marionebl/commitlint/commit/03aeefc))
+* allow [0] shorthand ([84cf938](https://github.com/conventional-changelog/commitlint/commit/84cf938))
+* correctly resolve parserOpts [#115](https://github.com/conventional-changelog/commitlint/issues/115) [#95](https://github.com/conventional-changelog/commitlint/issues/95) ([1353dd5](https://github.com/conventional-changelog/commitlint/commit/1353dd5))
+* ignore branch merges with newlines ([#214](https://github.com/conventional-changelog/commitlint/issues/214)) ([c94c4dc](https://github.com/conventional-changelog/commitlint/commit/c94c4dc))
+* sanitize ensure.case [#211](https://github.com/conventional-changelog/commitlint/issues/211) ([#217](https://github.com/conventional-changelog/commitlint/issues/217)) ([03aeefc](https://github.com/conventional-changelog/commitlint/commit/03aeefc))
### Styles
-* validate rule configuration ([edf7187](https://github.com/marionebl/commitlint/commit/edf7187))
+* validate rule configuration ([edf7187](https://github.com/conventional-changelog/commitlint/commit/edf7187))
### BREAKING CHANGES
@@ -126,29 +263,29 @@ their configuration quicker.
-## [5.2.6](https://github.com/marionebl/commitlint/compare/v5.2.5...v5.2.6) (2017-12-21)
+## [5.2.6](https://github.com/conventional-changelog/commitlint/compare/v5.2.5...v5.2.6) (2017-12-21)
### Bug Fixes
-* ignore semver commits with chore type ([cdbb085](https://github.com/marionebl/commitlint/commit/cdbb085)), closes [#198](https://github.com/marionebl/commitlint/issues/198)
+* ignore semver commits with chore type ([cdbb085](https://github.com/conventional-changelog/commitlint/commit/cdbb085)), closes [#198](https://github.com/conventional-changelog/commitlint/issues/198)
-## [5.2.5](https://github.com/marionebl/commitlint/compare/v5.2.4...v5.2.5) (2017-12-08)
+## [5.2.5](https://github.com/conventional-changelog/commitlint/compare/v5.2.4...v5.2.5) (2017-12-08)
### Bug Fixes
-* **core:** use correct report message [#192](https://github.com/marionebl/commitlint/issues/192) ([e3a78bc](https://github.com/marionebl/commitlint/commit/e3a78bc))
+* **core:** use correct report message [#192](https://github.com/conventional-changelog/commitlint/issues/192) ([e3a78bc](https://github.com/conventional-changelog/commitlint/commit/e3a78bc))
-## [5.2.4](https://github.com/marionebl/commitlint/compare/v5.2.3...v5.2.4) (2017-12-08)
+## [5.2.4](https://github.com/conventional-changelog/commitlint/compare/v5.2.3...v5.2.4) (2017-12-08)
@@ -156,119 +293,119 @@ their configuration quicker.
**Note:** Version bump only for package @commitlint/root
-## [5.2.3](https://github.com/marionebl/commitlint/compare/v5.2.2...v5.2.3) (2017-12-05)
+## [5.2.3](https://github.com/conventional-changelog/commitlint/compare/v5.2.2...v5.2.3) (2017-12-05)
### Bug Fixes
-* **cli:** add support for GIT_PARAMS on windows ([c62bd41](https://github.com/marionebl/commitlint/commit/c62bd41)), closes [#103](https://github.com/marionebl/commitlint/issues/103) [#175](https://github.com/marionebl/commitlint/issues/175)
+* **cli:** add support for GIT_PARAMS on windows ([c62bd41](https://github.com/conventional-changelog/commitlint/commit/c62bd41)), closes [#103](https://github.com/conventional-changelog/commitlint/issues/103) [#175](https://github.com/conventional-changelog/commitlint/issues/175)
-## [5.2.2](https://github.com/marionebl/commitlint/compare/v5.2.1...v5.2.2) (2017-11-30)
+## [5.2.2](https://github.com/conventional-changelog/commitlint/compare/v5.2.1...v5.2.2) (2017-11-30)
### Bug Fixes
-* **travis-cli:** read push commits directly ([9bc56c6](https://github.com/marionebl/commitlint/commit/9bc56c6))
+* **travis-cli:** read push commits directly ([9bc56c6](https://github.com/conventional-changelog/commitlint/commit/9bc56c6))
-## [5.2.1](https://github.com/marionebl/commitlint/compare/v5.2.0...v5.2.1) (2017-11-30)
+## [5.2.1](https://github.com/conventional-changelog/commitlint/compare/v5.2.0...v5.2.1) (2017-11-30)
### Bug Fixes
-* **travis-cli:** lint ranges only for pr builds ([85b201f](https://github.com/marionebl/commitlint/commit/85b201f))
+* **travis-cli:** lint ranges only for pr builds ([85b201f](https://github.com/conventional-changelog/commitlint/commit/85b201f))
-# [5.2.0](https://github.com/marionebl/commitlint/compare/v5.1.3...v5.2.0) (2017-11-30)
+# [5.2.0](https://github.com/conventional-changelog/commitlint/compare/v5.1.3...v5.2.0) (2017-11-30)
### Bug Fixes
-* consider pull requests from forks ([4653c2c](https://github.com/marionebl/commitlint/commit/4653c2c))
+* consider pull requests from forks ([4653c2c](https://github.com/conventional-changelog/commitlint/commit/4653c2c))
### Features
-* **babel-preset-commitlint:** add jsx tranform ([#163](https://github.com/marionebl/commitlint/issues/163)) ([5190241](https://github.com/marionebl/commitlint/commit/5190241))
+* **babel-preset-commitlint:** add jsx tranform ([#163](https://github.com/conventional-changelog/commitlint/issues/163)) ([5190241](https://github.com/conventional-changelog/commitlint/commit/5190241))
-## [5.1.3](https://github.com/marionebl/commitlint/compare/v5.1.2...v5.1.3) (2017-11-24)
+## [5.1.3](https://github.com/conventional-changelog/commitlint/compare/v5.1.2...v5.1.3) (2017-11-24)
### Bug Fixes
-* **config-conventional:** add missing applicable attribute to type-enum ([a8db0b1](https://github.com/marionebl/commitlint/commit/a8db0b1))
+* **config-conventional:** add missing applicable attribute to type-enum ([a8db0b1](https://github.com/conventional-changelog/commitlint/commit/a8db0b1))
-## [5.1.2](https://github.com/marionebl/commitlint/compare/v5.1.1...v5.1.2) (2017-11-24)
+## [5.1.2](https://github.com/conventional-changelog/commitlint/compare/v5.1.1...v5.1.2) (2017-11-24)
### Bug Fixes
-* **prompt:** apply forced cases properly ([3a569a7](https://github.com/marionebl/commitlint/commit/3a569a7)), closes [#145](https://github.com/marionebl/commitlint/issues/145)
+* **prompt:** apply forced cases properly ([3a569a7](https://github.com/conventional-changelog/commitlint/commit/3a569a7)), closes [#145](https://github.com/conventional-changelog/commitlint/issues/145)
-## [5.1.1](https://github.com/marionebl/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
+## [5.1.1](https://github.com/conventional-changelog/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
### Bug Fixes
-* set access for npm ([8aeaec2](https://github.com/marionebl/commitlint/commit/8aeaec2))
+* set access for npm ([8aeaec2](https://github.com/conventional-changelog/commitlint/commit/8aeaec2))
-# [5.1.0](https://github.com/marionebl/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
+# [5.1.0](https://github.com/conventional-changelog/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
### Bug Fixes
-* update dependency concurrently to v3.5.1 ([#147](https://github.com/marionebl/commitlint/issues/147)) ([a809d0f](https://github.com/marionebl/commitlint/commit/a809d0f))
-* **config-conventional:** remove unneeded dependency ([d0e62fd](https://github.com/marionebl/commitlint/commit/d0e62fd))
+* update dependency concurrently to v3.5.1 ([#147](https://github.com/conventional-changelog/commitlint/issues/147)) ([a809d0f](https://github.com/conventional-changelog/commitlint/commit/a809d0f))
+* **config-conventional:** remove unneeded dependency ([d0e62fd](https://github.com/conventional-changelog/commitlint/commit/d0e62fd))
### Features
-* **prompt:** add description for build, ci and revert ([#148](https://github.com/marionebl/commitlint/issues/148)) ([ee6ec6e](https://github.com/marionebl/commitlint/commit/ee6ec6e))
-* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/marionebl/commitlint/commit/3e6e6a8))
-* add conventional-changelog package ([8bb0a85](https://github.com/marionebl/commitlint/commit/8bb0a85))
+* **prompt:** add description for build, ci and revert ([#148](https://github.com/conventional-changelog/commitlint/issues/148)) ([ee6ec6e](https://github.com/conventional-changelog/commitlint/commit/ee6ec6e))
+* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/conventional-changelog/commitlint/commit/3e6e6a8))
+* add conventional-changelog package ([8bb0a85](https://github.com/conventional-changelog/commitlint/commit/8bb0a85))
-## [5.0.1](https://github.com/marionebl/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
+## [5.0.1](https://github.com/conventional-changelog/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
### Bug Fixes
-* **core:** fall back to globally installed config if available ([#127](https://github.com/marionebl/commitlint/issues/127)) ([8612eb3](https://github.com/marionebl/commitlint/commit/8612eb3))
+* **core:** fall back to globally installed config if available ([#127](https://github.com/conventional-changelog/commitlint/issues/127)) ([8612eb3](https://github.com/conventional-changelog/commitlint/commit/8612eb3))
-# [5.0.0](https://github.com/marionebl/commitlint/compare/v4.3.0...v5.0.0) (2017-11-18)
+# [5.0.0](https://github.com/conventional-changelog/commitlint/compare/v4.3.0...v5.0.0) (2017-11-18)
### Bug fixes
@@ -304,15 +441,15 @@ Also, formerly working commit messages are now considered problems:
* type: Some Message
-# [4.3.0](https://github.com/marionebl/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
+# [4.3.0](https://github.com/conventional-changelog/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
### Bug Fixes
-* **core:** deprecate nlp rules ([bbab1d8](https://github.com/marionebl/commitlint/commit/bbab1d8)), closes [#54](https://github.com/marionebl/commitlint/issues/54)
-* **core:** ignore comments ([f3beda1](https://github.com/marionebl/commitlint/commit/f3beda1)), closes [#78](https://github.com/marionebl/commitlint/issues/78)
+* **core:** deprecate nlp rules ([bbab1d8](https://github.com/conventional-changelog/commitlint/commit/bbab1d8)), closes [#54](https://github.com/conventional-changelog/commitlint/issues/54)
+* **core:** ignore comments ([f3beda1](https://github.com/conventional-changelog/commitlint/commit/f3beda1)), closes [#78](https://github.com/conventional-changelog/commitlint/issues/78)
### Features
-* add references-empty rule ([4fc8d5d](https://github.com/marionebl/commitlint/commit/4fc8d5d))
+* add references-empty rule ([4fc8d5d](https://github.com/conventional-changelog/commitlint/commit/4fc8d5d))
diff --git a/README.md b/README.md
index 0992bc75a9..872f939634 100644
--- a/README.md
+++ b/README.md
@@ -1,16 +1,16 @@
+# [Get Started](https://conventional-changelog.github.io/commitlint/#/?id=getting-started) | [Let's chat][12] ![slack][11] | [Website](https://conventional-changelog.github.io/commitlint)
+
> Lint commit messages
-
+
> Demo generated with [svg-term-cli](https://github.com/marionebl/svg-term-cli)
>
> `cat docs/assets/commitlint.json | svg-term --out docs/assets/commitlint.svg --frame --profile=Seti --height=20 --width=80`
-# commitlint [![slack][11]][12]
-
-[![npm latest][2]][3] [![Travis branch][4]][5] [![AppVeyor branch][6]][7]
+[![npm latest][2]][3] [![CircleCI][4]][5]
* 🚓 Be a good `commitizen`
@@ -19,6 +19,8 @@
## Contents
+* [What is commitlint](#what-is-commitlint)
+ * [Benefits using commitlint](#benefits-using-commitlint)
* [Getting started](#getting-started)
* [CLI](#cli)
* [Config](#config)
@@ -35,25 +37,63 @@
* * *
+## What is commitlint
+commitlint checks if your commit messages meet the [conventional commit format](https://conventionalcommits.org).
+
+In general the pattern mostly looks like this:
+```sh
+type(scope?): subject #scope is optional
+```
+Real world examples can look like this:
+```
+chore: run tests on travis ci
+```
+```
+fix(server): send cors headers
+```
+```
+feat(blog): add comment section
+```
+Common types according to [commitlint-config-conventional (based on the the Angular convention)](https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/config-conventional#type-enum) can be:
+- build
+- ci
+- chore
+- docs
+- feat
+- fix
+- perf
+- refactor
+- revert
+- style
+- test
+
+These can be modified by [your own configuration](#config).
+
+### Benefits using commitlint
+- [Why Use Conventional Commits?](https://www.conventionalcommits.org/en/v1.0.0-beta.2/#why-use-conventional-commits)
+- ["The perks of committing with conventions" (Talk slides)](https://slides.com/marionebl/the-perks-of-committing-with-conventions#/)
+
+
## Getting started
```sh
-# Install commitlint cli and angular config
+# Install commitlint cli and conventional config
npm install --save-dev @commitlint/{config-conventional,cli}
# For Windows:
npm install --save-dev @commitlint/config-conventional @commitlint/cli
-# Configure commitlint to use angular config
+# Configure commitlint to use conventional config
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
```
-To lint commits before they are created you can use the 'commitmsg' hook as described [here](https://github.com/typicode/husky/blob/master/HOOKS.md#hooks)
-
+To lint commits before they are created you can use Husky's 'commit-msg' hook:
```json
{
- "scripts": {
- "commitmsg": "commitlint -E GIT_PARAMS"
+ "husky": {
+ "hooks": {
+ "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
+ }
}
}
```
@@ -61,8 +101,8 @@ To lint commits before they are created you can use the 'commitmsg' hook as desc
**Detailed Setup instructions**
-* [Local setup](http://marionebl.github.io/commitlint/#/guides-local-setup) - Lint messages on commit with husky
-* [CI setup](http://marionebl.github.io/commitlint/#/guides-ci-setup) - Lint messages during CI builds
+* [Local setup](https://conventional-changelog.github.io/commitlint/#/guides-local-setup) - Lint messages on commit with husky
+* [CI setup](https://conventional-changelog.github.io/commitlint/#/guides-ci-setup) - Lint messages during CI builds
## CLI
@@ -89,6 +129,7 @@ A number of shared configurations are available to install and use with `commitl
* [conventional-changelog-lint-config-atom](https://github.com/erikmueller/conventional-changelog-lint-config-atom)
* [conventional-changelog-lint-config-canonical](https://github.com/gajus/conventional-changelog-lint-config-canonical)
+>⚠️ If you want to publish your own shareable config then make sure it has a name aligning with the pattern `commitlint-config-emoji-log` or `commitlint-config-your-config-name` — then in extend all you have to write is `emoji-log` or `your-config-name`.
## API
@@ -107,14 +148,14 @@ A number of shared configurations are available to install and use with `commitl
## Roadmap
-> **Ideas**: [marionebl/commitlint#94](https://github.com/marionebl/commitlint/issues/94)
+> **Ideas**: [conventional-changelog/commitlint#94](https://github.com/conventional-changelog/commitlint/issues/94)
`commitlint` is considered stable and is used in various projects as development tool.
We identify **ease of adoption** and **developer experience** as fields where there
is room and need for improvement. The items on the roadmap should enhance `commitlint` regarding those aspects.
-* [x] **Adoption**: Provide reusable Travis CI integration: `@commitlint/travis-cli` (https://github.com/marionebl/commitlint/releases/tag/v5.1.0)
+* [x] **Adoption**: Provide reusable Travis CI integration: `@commitlint/travis-cli` (https://github.com/conventional-changelog/commitlint/releases/tag/v5.1.0)
* [ ] **DX**: Support PR squash scenario via [ahmed-taj/commitlint-bot](https://github.com/ahmed-taj/commitlint-bot/) and `@commitlint/travis-cli`
* [ ] **Adoption**: Make [ahmed-taj/commitlint-bot](https://github.com/ahmed-taj/commitlint-bot/) configurable via `commitlint` configuration
* [ ] **Adoption**: Create `commitlint init`
@@ -132,6 +173,7 @@ is room and need for improvement. The items on the roadmap should enhance `commi
* [conventional-changelog](https://git.io/v18sw) – Generate a changelog from conventional commit history
* [commitizen](https://git.io/vwTym) – Simple commit conventions for internet citizens
* [create-semantic-module](https://git.io/vFjFg) – CLI for quickly integrating commitizen and commitlint in new or existing projects
+* [commitlint.io](https://github.com/tomasen/commitlintio) - helps your project to ensures nice and tidy commit messages without needing any download or installation
## License
Copyright by @marionebl. All `commitlint` packages are released under the MIT license.
@@ -143,7 +185,7 @@ Copyright by @marionebl. All `commitlint` packages are released under the MIT li
### Install and run
```sh
-git clone git@github.com:marionebl/commitlint.git
+git clone git@github.com:conventional-changelog/commitlint.git
cd commitlint
npx yarn install
npx yarn run build # run build tasks
@@ -167,15 +209,15 @@ npx yarn run publish
[1]: https://nodejs.org/api/documentation.html#documentation_stability_index
[2]: https://img.shields.io/npm/v/@commitlint/cli.svg?style=flat-square
[3]: https://npmjs.org/package/@commitlint/cli
-[4]: https://img.shields.io/travis/marionebl/commitlint/master.svg?style=flat-square
-[5]: https://travis-ci.org/marionebl/commitlint
-[6]: https://img.shields.io/appveyor/ci/marionebl/commitlint/master.svg?style=flat-square
-[7]: https://ci.appveyor.com/project/marionebl/commitlint
+[4]: https://img.shields.io/circleci/project/github/conventional-changelog/commitlint/master.svg?style=flat-square
+[5]: https://circleci.com/gh/conventional-changelog/commitlint
+
[8]: https://img.shields.io/badge/stability-experimental-orange.svg?style=flat-square
[9]: https://nodejs.org/api/documentation.html#documentation_stability_index
[10]: https://img.shields.io/npm/v/@commitlint/cli/next.svg?style=flat-square
-[11]: http://devtoolscommunity.herokuapp.com/badge.svg?style=flat-square
-[12]: http://devtoolscommunity.herokuapp.com
+[11]: https://devtoolscommunity.herokuapp.com/badge.svg?style=flat-square
+[12]: https://devtoolscommunity.herokuapp.com
diff --git a/docs/README.md b/docs/README.md
index f945b9caef..fa4cd0a2bf 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -1,14 +1,14 @@
> Lint commit messages