Skip to content

Commit bb5be20

Browse files
authored
test(logs): Configure commintlint status checks on PR submission (#231)
1 parent 333591a commit bb5be20

File tree

3 files changed

+123
-7
lines changed

3 files changed

+123
-7
lines changed

commitlint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-angular'],
3+
};

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
"automerge": "minor"
3434
},
3535
"devDependencies": {
36+
"@commitlint/cli": "^4.2.2",
37+
"@commitlint/config-angular": "^4.2.1",
3638
"babel-cli": "6.26.0",
3739
"babel-eslint": "8.0.2",
3840
"babel-jest": "21.2.0",

yarn.lock

Lines changed: 118 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,58 @@
5555
lodash "^4.2.0"
5656
to-fast-properties "^2.0.0"
5757

58+
"@commitlint/cli@^4.2.2":
59+
version "4.2.2"
60+
resolved "https://registry.yarnpkg.com/@commitlint/cli/-/cli-4.2.2.tgz#f21669c28af9e5d49befc6bfd556b8130a782380"
61+
dependencies:
62+
"@commitlint/core" "^4.2.2"
63+
babel-polyfill "^6.23.0"
64+
chalk "^2.0.1"
65+
get-stdin "^5.0.1"
66+
lodash "^4.17.4"
67+
meow "^3.7.0"
68+
69+
"@commitlint/config-angular@^4.2.1":
70+
version "4.2.1"
71+
resolved "https://registry.yarnpkg.com/@commitlint/config-angular/-/config-angular-4.2.1.tgz#95b8b9975591047308afb109bd63a4298616eb5b"
72+
73+
"@commitlint/core@^4.2.2":
74+
version "4.2.2"
75+
resolved "https://registry.yarnpkg.com/@commitlint/core/-/core-4.2.2.tgz#24f37b5afdeca993173f1696724570015148c1f8"
76+
dependencies:
77+
"@marionebl/git-raw-commits" "^1.2.0"
78+
"@marionebl/sander" "^0.6.0"
79+
babel-runtime "^6.23.0"
80+
chalk "^2.0.1"
81+
conventional-changelog-angular "^1.3.3"
82+
conventional-commits-parser "^1.3.0"
83+
cosmiconfig "^3.0.1"
84+
find-up "^2.1.0"
85+
franc "^2.0.0"
86+
lodash "^4.17.4"
87+
path-exists "^3.0.0"
88+
pos "^0.4.2"
89+
resolve-from "^3.0.0"
90+
semver "^5.3.0"
91+
92+
"@marionebl/git-raw-commits@^1.2.0":
93+
version "1.2.0"
94+
resolved "https://registry.yarnpkg.com/@marionebl/git-raw-commits/-/git-raw-commits-1.2.0.tgz#7cd8a6dfc09a96df98d8fbe9175c5971cc07c82b"
95+
dependencies:
96+
dargs "^4.0.1"
97+
lodash.template "^4.0.2"
98+
meow "^3.3.0"
99+
split2 "^2.0.0"
100+
through2 "^2.0.0"
101+
102+
"@marionebl/sander@^0.6.0":
103+
version "0.6.1"
104+
resolved "https://registry.yarnpkg.com/@marionebl/sander/-/sander-0.6.1.tgz#1958965874f24bc51be48875feb50d642fc41f7b"
105+
dependencies:
106+
graceful-fs "^4.1.3"
107+
mkdirp "^0.5.1"
108+
rimraf "^2.5.2"
109+
58110
JSONStream@^1.0.4:
59111
version "1.3.1"
60112
resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.1.tgz#707f761e01dae9e16f1bcf93703b78c70966579a"
@@ -847,7 +899,7 @@ babel-plugin-transform-strict-mode@^6.24.1:
847899
babel-runtime "^6.22.0"
848900
babel-types "^6.24.1"
849901

850-
babel-polyfill@^6.26.0:
902+
babel-polyfill@^6.23.0, babel-polyfill@^6.26.0:
851903
version "6.26.0"
852904
resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153"
853905
dependencies:
@@ -939,7 +991,7 @@ [email protected], babel-register@^6.26.0:
939991
mkdirp "^0.5.1"
940992
source-map-support "^0.4.15"
941993

942-
babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0:
994+
babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.23.0, babel-runtime@^6.26.0:
943995
version "6.26.0"
944996
resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe"
945997
dependencies:
@@ -1341,7 +1393,7 @@ contra@^1.6.8:
13411393
atoa "1.0.0"
13421394
ticky "1.0.1"
13431395

1344-
conventional-changelog-angular@^1.5.1:
1396+
conventional-changelog-angular@^1.3.3, conventional-changelog-angular@^1.5.1:
13451397
version "1.5.1"
13461398
resolved "https://registry.yarnpkg.com/conventional-changelog-angular/-/conventional-changelog-angular-1.5.1.tgz#974e73aa1c39c392e4364f2952bd9a62904e9ea3"
13471399
dependencies:
@@ -1462,6 +1514,18 @@ conventional-commits-filter@^1.0.0:
14621514
is-subset "^0.1.1"
14631515
modify-values "^1.0.0"
14641516

1517+
conventional-commits-parser@^1.3.0:
1518+
version "1.3.0"
1519+
resolved "https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-1.3.0.tgz#e327b53194e1a7ad5dc63479ee9099a52b024865"
1520+
dependencies:
1521+
JSONStream "^1.0.4"
1522+
is-text-path "^1.0.0"
1523+
lodash "^4.2.1"
1524+
meow "^3.3.0"
1525+
split2 "^2.0.0"
1526+
through2 "^2.0.0"
1527+
trim-off-newlines "^1.0.0"
1528+
14651529
conventional-commits-parser@^2.0.0:
14661530
version "2.0.0"
14671531
resolved "https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-2.0.0.tgz#71d01910cb0a99aeb20c144e50f81f4df3178447"
@@ -1503,6 +1567,15 @@ cosmiconfig@^1.1.0:
15031567
pinkie-promise "^2.0.0"
15041568
require-from-string "^1.1.0"
15051569

1570+
cosmiconfig@^3.0.1:
1571+
version "3.1.0"
1572+
resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-3.1.0.tgz#640a94bf9847f321800403cd273af60665c73397"
1573+
dependencies:
1574+
is-directory "^0.3.1"
1575+
js-yaml "^3.9.0"
1576+
parse-json "^3.0.0"
1577+
require-from-string "^2.0.1"
1578+
15061579
cross-spawn@^5.0.1, cross-spawn@^5.1.0:
15071580
version "5.1.0"
15081581
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
@@ -1747,7 +1820,7 @@ errno@^0.1.4:
17471820
dependencies:
17481821
prr "~0.0.0"
17491822

1750-
error-ex@^1.2.0:
1823+
error-ex@^1.2.0, error-ex@^1.3.1:
17511824
version "1.3.1"
17521825
resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc"
17531826
dependencies:
@@ -2162,6 +2235,12 @@ form-data@~2.3.1:
21622235
combined-stream "^1.0.5"
21632236
mime-types "^2.1.12"
21642237

2238+
franc@^2.0.0:
2239+
version "2.0.0"
2240+
resolved "https://registry.yarnpkg.com/franc/-/franc-2.0.0.tgz#d9939eded4b486acf4b9f33591fe8e69e5464616"
2241+
dependencies:
2242+
trigram-utils "^0.1.0"
2243+
21652244
fs-extra@^3.0.1:
21662245
version "3.0.1"
21672246
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-3.0.1.tgz#3794f378c58b342ea7dbbb23095109c4b3b62291"
@@ -2407,7 +2486,7 @@ graceful-fs@^3.0.0, graceful-fs@^3.0.1:
24072486
dependencies:
24082487
natives "^1.1.0"
24092488

2410-
graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.4, graceful-fs@^4.1.6:
2489+
graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.3, graceful-fs@^4.1.4, graceful-fs@^4.1.6:
24112490
version "4.1.11"
24122491
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"
24132492

@@ -2686,6 +2765,10 @@ is-decimal@^1.0.0:
26862765
version "1.0.1"
26872766
resolved "https://registry.yarnpkg.com/is-decimal/-/is-decimal-1.0.1.tgz#f5fb6a94996ad9e8e3761fbfbd091f1fca8c4e82"
26882767

2768+
is-directory@^0.3.1:
2769+
version "0.3.1"
2770+
resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1"
2771+
26892772
is-dotfile@^1.0.0:
26902773
version "1.0.3"
26912774
resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1"
@@ -3165,7 +3248,7 @@ js-tokens@^3.0.0, js-tokens@^3.0.2:
31653248
version "3.0.2"
31663249
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b"
31673250

3168-
js-yaml@^3.1.0, js-yaml@^3.4.3, js-yaml@^3.7.0, js-yaml@^3.9.1:
3251+
js-yaml@^3.1.0, js-yaml@^3.4.3, js-yaml@^3.7.0, js-yaml@^3.9.0, js-yaml@^3.9.1:
31693252
version "3.10.0"
31703253
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.10.0.tgz#2e78441646bd4682e963f22b6e92823c309c62dc"
31713254
dependencies:
@@ -3666,6 +3749,10 @@ [email protected]:
36663749
update-notifier "^0.2.2"
36673750
vinyl-fs "^0.3.4"
36683751

3752+
n-gram@^0.1.0:
3753+
version "0.1.2"
3754+
resolved "https://registry.yarnpkg.com/n-gram/-/n-gram-0.1.2.tgz#9acecb0f797fbfd22a0ad8a28d987880a63002ab"
3755+
36693756
nan@^2.3.0:
36703757
version "2.7.0"
36713758
resolved "https://registry.yarnpkg.com/nan/-/nan-2.7.0.tgz#d95bf721ec877e08db276ed3fc6eb78f9083ad46"
@@ -3952,6 +4039,12 @@ parse-json@^2.2.0:
39524039
dependencies:
39534040
error-ex "^1.2.0"
39544041

4042+
parse-json@^3.0.0:
4043+
version "3.0.0"
4044+
resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-3.0.0.tgz#fa6f47b18e23826ead32f263e744d0e1e847fb13"
4045+
dependencies:
4046+
error-ex "^1.3.1"
4047+
39554048
parse5@^1.5.1:
39564049
version "1.5.1"
39574050
resolved "https://registry.yarnpkg.com/parse5/-/parse5-1.5.1.tgz#9b7f3b0de32be78dc2401b17573ccaf0f6f59d94"
@@ -4032,6 +4125,10 @@ pluralize@^7.0.0:
40324125
version "7.0.0"
40334126
resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-7.0.0.tgz#298b89df8b93b0221dbf421ad2b1b1ea23fc6777"
40344127

4128+
pos@^0.4.2:
4129+
version "0.4.2"
4130+
resolved "https://registry.yarnpkg.com/pos/-/pos-0.4.2.tgz#20e9c77fbeedcc356823cea63c7585cace93be2a"
4131+
40354132
prelude-ls@~1.1.2:
40364133
version "1.1.2"
40374134
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
@@ -4409,6 +4506,10 @@ require-from-string@^1.1.0:
44094506
version "1.2.1"
44104507
resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-1.2.1.tgz#529c9ccef27380adfec9a2f965b649bbee636418"
44114508

4509+
require-from-string@^2.0.1:
4510+
version "2.0.1"
4511+
resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.1.tgz#c545233e9d7da6616e9d59adfb39fc9f588676ff"
4512+
44124513
require-main-filename@^1.0.1:
44134514
version "1.0.1"
44144515
resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1"
@@ -4424,6 +4525,10 @@ resolve-from@^1.0.0:
44244525
version "1.0.1"
44254526
resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-1.0.1.tgz#26cbfe935d1aeeeabb29bc3fe5aeb01e93d44226"
44264527

4528+
resolve-from@^3.0.0:
4529+
version "3.0.0"
4530+
resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748"
4531+
44274532
44284533
version "1.1.7"
44294534
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b"
@@ -4454,7 +4559,7 @@ right-align@^0.1.1:
44544559
dependencies:
44554560
align-text "^0.1.1"
44564561

4457-
rimraf@2, rimraf@^2.2.8, rimraf@^2.5.1, rimraf@^2.6.1:
4562+
rimraf@2, rimraf@^2.2.8, rimraf@^2.5.1, rimraf@^2.5.2, rimraf@^2.6.1:
44584563
version "2.6.2"
44594564
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36"
44604565
dependencies:
@@ -4932,6 +5037,12 @@ traverse@^0.6.6:
49325037
version "0.6.6"
49335038
resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.6.6.tgz#cbdf560fd7b9af632502fed40f918c157ea97137"
49345039

5040+
trigram-utils@^0.1.0:
5041+
version "0.1.1"
5042+
resolved "https://registry.yarnpkg.com/trigram-utils/-/trigram-utils-0.1.1.tgz#7df8a092c9897fc2e09dac22f423e283231762e7"
5043+
dependencies:
5044+
n-gram "^0.1.0"
5045+
49355046
trim-newlines@^1.0.0:
49365047
version "1.0.0"
49375048
resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613"

0 commit comments

Comments
 (0)