-
Notifications
You must be signed in to change notification settings - Fork 913
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* allow forced cwds * remove flaky tests BREAKING CHANGE: discontinue support of conventional-changelog-lintrc
- Loading branch information
Showing
17 changed files
with
219 additions
and
496 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
@commitlint/core/fixtures/legacy/.conventional-changelog-lintrc
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
@commitlint/core/fixtures/overriden-legacy/.conventional-changelog-lintrc
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
@commitlint/core/fixtures/overriden-legacy/commitlint.config.js
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
@commitlint/core/fixtures/recursive-extends/first-extended/commitlint.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
extends: ['./second-extended'], | ||
rules: { | ||
one: 1 | ||
} | ||
}; |
7 changes: 1 addition & 6 deletions
7
@commitlint/core/fixtures/recursive-extends/first-extended/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
module.exports = { | ||
extends: ['./second-extended'], | ||
rules: { | ||
one: 1 | ||
} | ||
}; | ||
module.exports = require('./commitlint.config.js'); |
13 changes: 6 additions & 7 deletions
13
...s/recursive-parser-preset/first-extended/second-extended/conventional-changelog-custom.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
const defaultOpts = require('conventional-changelog-angular'); | ||
const _ = require('lodash'); | ||
|
||
module.exports = defaultOpts.then(data => { | ||
const extented = _.cloneDeep(data); | ||
extented.parserOpts.headerPattern = /^(\w*)(?:\((.*)\))?-(.*)$/; | ||
return extented; | ||
module.exports = Promise.resolve().then(() => { | ||
return { | ||
parserOpts: { | ||
headerPattern: /^(\w*)(?:\((.*)\))?-(.*)$/ | ||
} | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import path from 'path'; | ||
import up from 'find-up'; | ||
|
||
export default toplevel; | ||
|
||
// Find the next git root | ||
// (start: string) => Promise<string | null> | ||
async function toplevel(cwd) { | ||
const found = await up('.git', {cwd}); | ||
|
||
if (typeof found !== 'string') { | ||
return found; | ||
} | ||
|
||
return path.join(found, '..'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.