mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2025-11-07 08:06:54 +00:00
feat: upgrade commitlint dependencies to v9
BREAKING CHANGE: this includes breaking changes from commitlint v9, like the fact that `improvement` type is now rejected in `@commitlint/config-conventional`.
This commit is contained in:
parent
a85daedc64
commit
a413a3f439
4 changed files with 641 additions and 261 deletions
|
|
@ -1,9 +1,5 @@
|
||||||
// For a detailed explanation regarding each configuration property, visit:
|
|
||||||
// https://jestjs.io/docs/en/configuration.html
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
// Automatically clear mock calls and instances between every test
|
// Automatically clear mock calls and instances between every test
|
||||||
clearMocks: true,
|
clearMocks: true,
|
||||||
// The test environment that will be used for testing
|
testEnvironment: '@commitlint/test-environment',
|
||||||
testEnvironment: 'node',
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
871
package-lock.json
generated
871
package-lock.json
generated
File diff suppressed because it is too large
Load diff
21
package.json
21
package.json
|
|
@ -17,22 +17,23 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.2.4",
|
"@actions/core": "^1.2.4",
|
||||||
"@actions/github": "^1.1.0",
|
"@actions/github": "^1.1.0",
|
||||||
"@commitlint/config-angular": "^8.3.4",
|
"@commitlint/config-angular": "^9.1.1",
|
||||||
"@commitlint/config-conventional": "^8.3.4",
|
"@commitlint/config-conventional": "^9.1.1",
|
||||||
"@commitlint/config-lerna-scopes": "^8.3.4",
|
"@commitlint/config-lerna-scopes": "^9.1.1",
|
||||||
"@commitlint/config-patternplate": "^8.3.4",
|
"@commitlint/config-patternplate": "^9.1.1",
|
||||||
"@commitlint/format": "^8.3.4",
|
"@commitlint/format": "^9.1.1",
|
||||||
"@commitlint/lint": "^8.3.5",
|
"@commitlint/lint": "^9.1.1",
|
||||||
"@commitlint/load": "^8.3.5",
|
"@commitlint/load": "^9.1.1",
|
||||||
"commitlint-config-jira": "^1.2.0",
|
"commitlint-config-jira": "^1.4.1",
|
||||||
"commitlint-plugin-jira-rules": "^1.2.0",
|
"commitlint-plugin-jira-rules": "^1.4.0",
|
||||||
"conventional-changelog-lint-config-canonical": "^1.0.0",
|
"conventional-changelog-lint-config-canonical": "^1.0.0",
|
||||||
"dargs": "^7.0.0",
|
"dargs": "^7.0.0",
|
||||||
"execa": "^4.0.3",
|
"execa": "^4.0.3",
|
||||||
"lerna": "^3.18.1"
|
"lerna": "^3.18.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/test": "^8.2.0",
|
"@commitlint/test": "^9.0.1",
|
||||||
|
"@commitlint/test-environment": "^9.0.1",
|
||||||
"conventional-changelog-cli": "^2.0.23",
|
"conventional-changelog-cli": "^2.0.23",
|
||||||
"husky": "^3.0.7",
|
"husky": "^3.0.7",
|
||||||
"jest": "^24.9.0",
|
"jest": "^24.9.0",
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@ const { existsSync } = require('fs')
|
||||||
const { resolve } = require('path')
|
const { resolve } = require('path')
|
||||||
const core = require('@actions/core')
|
const core = require('@actions/core')
|
||||||
const github = require('@actions/github')
|
const github = require('@actions/github')
|
||||||
const lint = require('@commitlint/lint')
|
const lint = require('@commitlint/lint').default
|
||||||
const { format } = require('@commitlint/format')
|
const { format } = require('@commitlint/format')
|
||||||
const load = require('@commitlint/load')
|
const load = require('@commitlint/load').default
|
||||||
const gitCommits = require('./gitCommits')
|
const gitCommits = require('./gitCommits')
|
||||||
const generateOutputs = require('./generateOutputs')
|
const generateOutputs = require('./generateOutputs')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue