Skip to content

Commit 9830c14

Browse files
Merge pull request #13 from conventional-changelog/master
[pull] master from conventional-changelog:master
2 parents 88b0319 + b12ec06 commit 9830c14

File tree

146 files changed

+723
-580
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+723
-580
lines changed

@alias/commitlint-config-angular/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [17.7.0](https://github.com/conventional-changelog/commitlint/compare/v17.6.7...v17.7.0) (2023-08-09)
7+
8+
**Note:** Version bump only for package commitlint-config-angular
9+
10+
11+
12+
13+
614
## [17.6.7](https://github.com/conventional-changelog/commitlint/compare/v17.6.6...v17.6.7) (2023-07-19)
715

816
**Note:** Version bump only for package commitlint-config-angular

@alias/commitlint-config-angular/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "commitlint-config-angular",
3-
"version": "17.6.7",
3+
"version": "17.7.0",
44
"description": "Shareable commitlint config enforcing the angular commit convention",
55
"files": [
66
"index.js"
@@ -30,7 +30,7 @@
3030
"node": ">=v14"
3131
},
3232
"dependencies": {
33-
"@commitlint/config-angular": "^17.6.7"
33+
"@commitlint/config-angular": "^17.7.0"
3434
},
3535
"devDependencies": {
3636
"@commitlint/utils": "^17.4.0"

@alias/commitlint-config-lerna-scopes/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [17.7.0](https://github.com/conventional-changelog/commitlint/compare/v17.6.7...v17.7.0) (2023-08-09)
7+
8+
**Note:** Version bump only for package commitlint-config-lerna-scopes
9+
10+
11+
12+
13+
614
## [17.6.6](https://github.com/conventional-changelog/commitlint/compare/v17.6.5...v17.6.6) (2023-06-24)
715

816
**Note:** Version bump only for package commitlint-config-lerna-scopes

@alias/commitlint-config-lerna-scopes/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "commitlint-config-lerna-scopes",
3-
"version": "17.6.6",
3+
"version": "17.7.0",
44
"description": "Shareable commitlint config enforcing lerna package names as scopes",
55
"files": [
66
"index.js"
@@ -30,7 +30,7 @@
3030
"node": ">=v14"
3131
},
3232
"dependencies": {
33-
"@commitlint/config-lerna-scopes": "^17.6.6"
33+
"@commitlint/config-lerna-scopes": "^17.7.0"
3434
},
3535
"devDependencies": {
3636
"@commitlint/utils": "^17.4.0"

@alias/commitlint-config-patternplate/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [17.7.0](https://github.com/conventional-changelog/commitlint/compare/v17.6.7...v17.7.0) (2023-08-09)
7+
8+
**Note:** Version bump only for package commitlint-config-patternplate
9+
10+
11+
12+
13+
614
## [17.6.7](https://github.com/conventional-changelog/commitlint/compare/v17.6.6...v17.6.7) (2023-07-19)
715

816
**Note:** Version bump only for package commitlint-config-patternplate

@alias/commitlint-config-patternplate/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "commitlint-config-patternplate",
3-
"version": "17.6.7",
3+
"version": "17.7.0",
44
"description": "Lint your commits, patternplate-style",
55
"files": [
66
"index.js"
@@ -30,7 +30,7 @@
3030
"node": ">=v14"
3131
},
3232
"dependencies": {
33-
"@commitlint/config-patternplate": "^17.6.7"
33+
"@commitlint/config-patternplate": "^17.7.0"
3434
},
3535
"devDependencies": {
3636
"@commitlint/utils": "^17.4.0"

@alias/commitlint/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [17.7.0](https://github.com/conventional-changelog/commitlint/compare/v17.6.7...v17.7.0) (2023-08-09)
7+
8+
**Note:** Version bump only for package commitlint
9+
10+
11+
12+
13+
614
## [17.6.7](https://github.com/conventional-changelog/commitlint/compare/v17.6.6...v17.6.7) (2023-07-19)
715

816
**Note:** Version bump only for package commitlint

@alias/commitlint/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "commitlint",
3-
"version": "17.6.7",
3+
"version": "17.7.0",
44
"description": "Lint your commit messages",
55
"files": [
66
"cli.js"
@@ -35,7 +35,7 @@
3535
},
3636
"license": "MIT",
3737
"dependencies": {
38-
"@commitlint/cli": "^17.6.7",
38+
"@commitlint/cli": "^17.7.0",
3939
"@commitlint/types": "^17.4.4"
4040
},
4141
"devDependencies": {

@commitlint/cli/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [17.7.0](https://github.com/conventional-changelog/commitlint/compare/v17.6.7...v17.7.0) (2023-08-09)
7+
8+
**Note:** Version bump only for package @commitlint/cli
9+
10+
11+
12+
13+
614
## [17.6.7](https://github.com/conventional-changelog/commitlint/compare/v17.6.6...v17.6.7) (2023-07-19)
715

816
**Note:** Version bump only for package @commitlint/cli

@commitlint/cli/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@commitlint/cli",
3-
"version": "17.6.7",
3+
"version": "17.7.0",
44
"description": "Lint your commit messages",
55
"files": [
66
"index.js",
@@ -48,8 +48,8 @@
4848
},
4949
"dependencies": {
5050
"@commitlint/format": "^17.4.4",
51-
"@commitlint/lint": "^17.6.7",
52-
"@commitlint/load": "^17.6.7",
51+
"@commitlint/lint": "^17.7.0",
52+
"@commitlint/load": "^17.7.0",
5353
"@commitlint/read": "^17.5.1",
5454
"@commitlint/types": "^17.4.4",
5555
"execa": "^5.0.0",

@commitlint/cli/src/cli.test.ts

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ test('should produce help for problems', async () => {
6969
const cwd = await gitBootstrap('fixtures/default');
7070
const actual = await cli([], {cwd})('foo: bar');
7171
expect(actual.stdout).toContain(
72-
'Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint',
72+
'Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint'
7373
);
7474
expect(actual.exitCode).toBe(1);
7575
});
@@ -78,10 +78,10 @@ test('should produce help for problems with correct helpurl', async () => {
7878
const cwd = await gitBootstrap('fixtures/default');
7979
const actual = await cli(
8080
['-H https://github.com/conventional-changelog/commitlint/#testhelpurl'],
81-
{cwd},
81+
{cwd}
8282
)('foo: bar');
8383
expect(actual.stdout).toContain(
84-
'Get help: https://github.com/conventional-changelog/commitlint/#testhelpurl',
84+
'Get help: https://github.com/conventional-changelog/commitlint/#testhelpurl'
8585
);
8686
expect(actual.exitCode).toBe(1);
8787
});
@@ -152,7 +152,7 @@ test('should work with husky commitmsg hook and git commit', async () => {
152152
const commit = await execa(
153153
'git',
154154
['commit', '-m', '"test: this should work"'],
155-
{cwd},
155+
{cwd}
156156
);
157157

158158
expect(commit).toBeTruthy();
@@ -168,7 +168,7 @@ test('should work with husky commitmsg hook in sub packages', async () => {
168168
const commit = await execa(
169169
'git',
170170
['commit', '-m', '"test: this should work"'],
171-
{cwd},
171+
{cwd}
172172
);
173173
expect(commit).toBeTruthy();
174174
});
@@ -177,15 +177,15 @@ test('should work with husky via commitlint -e $GIT_PARAMS', async () => {
177177
const cwd = await gitBootstrap('fixtures/husky/integration');
178178
await writePkg(
179179
{husky: {hooks: {'commit-msg': `'${bin}' -e $GIT_PARAMS`}}},
180-
{cwd},
180+
{cwd}
181181
);
182182

183183
// await execa('npm', ['install'], {cwd}); // npm install is failing on windows machines
184184
await execa('git', ['add', 'package.json'], {cwd});
185185
const commit = await execa(
186186
'git',
187187
['commit', '-m', '"test: this should work"'],
188-
{cwd},
188+
{cwd}
189189
);
190190
expect(commit).toBeTruthy();
191191
});
@@ -194,15 +194,15 @@ test('should work with husky via commitlint -e %GIT_PARAMS%', async () => {
194194
const cwd = await gitBootstrap('fixtures/husky/integration');
195195
await writePkg(
196196
{husky: {hooks: {'commit-msg': `'${bin}' -e %GIT_PARAMS%`}}},
197-
{cwd},
197+
{cwd}
198198
);
199199

200200
// await execa('npm', ['install'], {cwd}); // npm install is failing on windows machines
201201
await execa('git', ['add', 'package.json'], {cwd});
202202
const commit = await execa(
203203
'git',
204204
['commit', '-m', '"test: this should work"'],
205-
{cwd},
205+
{cwd}
206206
);
207207
expect(commit).toBeTruthy();
208208
});
@@ -211,15 +211,15 @@ test('should work with husky via commitlint -e $HUSKY_GIT_PARAMS', async () => {
211211
const cwd = await gitBootstrap('fixtures/husky/integration');
212212
await writePkg(
213213
{husky: {hooks: {'commit-msg': `'${bin}' -e $HUSKY_GIT_PARAMS`}}},
214-
{cwd},
214+
{cwd}
215215
);
216216

217217
// await execa('npm', ['install'], {cwd}); // npm install is failing on windows machines
218218
await execa('git', ['add', 'package.json'], {cwd});
219219
const commit = await execa(
220220
'git',
221221
['commit', '-m', '"test: this should work"'],
222-
{cwd},
222+
{cwd}
223223
);
224224
expect(commit).toBeTruthy();
225225
});
@@ -228,15 +228,15 @@ test('should work with husky via commitlint -e %HUSKY_GIT_PARAMS%', async () =>
228228
const cwd = await gitBootstrap('fixtures/husky/integration');
229229
await writePkg(
230230
{husky: {hooks: {'commit-msg': `'${bin}' -e %HUSKY_GIT_PARAMS%`}}},
231-
{cwd},
231+
{cwd}
232232
);
233233

234234
// await execa('npm', ['install'], {cwd}); // npm install is failing on windows machines
235235
await execa('git', ['add', 'package.json'], {cwd});
236236
const commit = await execa(
237237
'git',
238238
['commit', '-m', '"test: this should work"'],
239-
{cwd},
239+
{cwd}
240240
);
241241
expect(commit).toBeTruthy();
242242
});
@@ -255,7 +255,7 @@ test('should allow reading of environment variables for edit file, failing if in
255255
const cwd = await gitBootstrap('fixtures/simple');
256256
await fs.writeFile(
257257
path.join(cwd, 'commit-msg-file'),
258-
'foo: bar\n\nFoo bar bizz buzz.\n\nCloses #123.',
258+
'foo: bar\n\nFoo bar bizz buzz.\n\nCloses #123.'
259259
);
260260
const actual = await cli(['--env', 'variable'], {
261261
cwd,
@@ -267,7 +267,7 @@ test('should allow reading of environment variables for edit file, failing if in
267267
test('should pick up parser preset and fail accordingly', async () => {
268268
const cwd = await gitBootstrap('fixtures/parser-preset');
269269
const actual = await cli(['--parser-preset', './parser-preset'], {cwd})(
270-
'type(scope): subject',
270+
'type(scope): subject'
271271
);
272272
expect(actual.exitCode).toBe(1);
273273
expect(actual.stdout).toContain('may not be empty');
@@ -276,7 +276,7 @@ test('should pick up parser preset and fail accordingly', async () => {
276276
test('should pick up parser preset and succeed accordingly', async () => {
277277
const cwd = await gitBootstrap('fixtures/parser-preset');
278278
const actual = await cli(['--parser-preset', './parser-preset'], {cwd})(
279-
'----type(scope): subject',
279+
'----type(scope): subject'
280280
);
281281
expect(actual.exitCode).toBe(0);
282282
});
@@ -322,7 +322,7 @@ test('should handle --amend with signoff', async () => {
322322
await execa(
323323
'git',
324324
['commit', '-m', '"test: this should work"', '--signoff'],
325-
{cwd},
325+
{cwd}
326326
);
327327
const commit = await execa('git', ['commit', '--amend', '--no-edit'], {cwd});
328328

@@ -342,7 +342,7 @@ test("it doesn't use parserOpts.commentChar when using edit mode", async () => {
342342
const cwd = await gitBootstrap('fixtures/comment-char');
343343
await fs.writeFile(
344344
path.join(cwd, '.git', 'COMMIT_EDITMSG'),
345-
'header: foo\n\n$body\n',
345+
'header: foo\n\n$body\n'
346346
);
347347

348348
const actual = await cli(['--edit', '.git/COMMIT_EDITMSG'], {cwd})();
@@ -355,7 +355,7 @@ test('it uses core.commentChar git config when using edit mode', async () => {
355355
await execa('git', ['config', '--local', 'core.commentChar', '$'], {cwd});
356356
await fs.writeFile(
357357
path.join(cwd, '.git', 'COMMIT_EDITMSG'),
358-
'header: foo\n\n$body\n',
358+
'header: foo\n\n$body\n'
359359
);
360360

361361
const actual = await cli(['--edit', '.git/COMMIT_EDITMSG'], {cwd})();
@@ -367,7 +367,7 @@ test('it falls back to # for core.commentChar when using edit mode', async () =>
367367
const cwd = await gitBootstrap('fixtures/comment-char');
368368
await fs.writeFile(
369369
path.join(cwd, '.git', 'COMMIT_EDITMSG'),
370-
'header: foo\n\n#body\n',
370+
'header: foo\n\n#body\n'
371371
);
372372

373373
const actual = await cli(['--edit', '.git/COMMIT_EDITMSG'], {cwd})();
@@ -408,7 +408,7 @@ test('should fail for invalid formatters from configuration', async () => {
408408
const actual = await cli([], {cwd})('foo: bar');
409409

410410
expect(actual.stderr).toContain(
411-
'Using format custom-formatter, but cannot find the module',
411+
'Using format custom-formatter, but cannot find the module'
412412
);
413413
expect(actual.stdout).toEqual('');
414414
expect(actual.exitCode).toBe(1);
@@ -449,7 +449,7 @@ test('should fail for invalid formatters from flags', async () => {
449449
const actual = await cli(['--format', 'through-flag'], {cwd})('foo: bar');
450450

451451
expect(actual.stderr).toContain(
452-
'Using format through-flag, but cannot find the module',
452+
'Using format through-flag, but cannot find the module'
453453
);
454454
expect(actual.stdout).toEqual('');
455455
expect(actual.exitCode).toBe(1);
@@ -458,11 +458,11 @@ test('should fail for invalid formatters from flags', async () => {
458458
test('should work with absolute formatter path', async () => {
459459
const formatterPath = path.resolve(
460460
__dirname,
461-
'../fixtures/custom-formatter/formatters/custom.js',
461+
'../fixtures/custom-formatter/formatters/custom.js'
462462
);
463463
const cwd = await gitBootstrap('fixtures/custom-formatter');
464464
const actual = await cli(['--format', formatterPath], {cwd})(
465-
'test: this should work',
465+
'test: this should work'
466466
);
467467

468468
expect(actual.stdout).toContain('custom-formatter-ok');
@@ -472,10 +472,10 @@ test('should work with absolute formatter path', async () => {
472472
test('should work with relative formatter path', async () => {
473473
const cwd = path.resolve(
474474
await gitBootstrap('fixtures/custom-formatter'),
475-
'./formatters',
475+
'./formatters'
476476
);
477477
const actual = await cli(['--format', './custom.js'], {cwd})(
478-
'test: this should work',
478+
'test: this should work'
479479
);
480480

481481
expect(actual.stdout).toContain('custom-formatter-ok');

0 commit comments

Comments
 (0)