ci: Stripped down config for Semantic checks (#17542)
* ci: Stripped down config for Semantic checks Conventional commit enforces too many pointless rules, all we care about is type and subject. * ci: auto merge on commit pass
This commit is contained in:
parent
4eb1fe74a5
commit
21a7291d00
4 changed files with 26 additions and 35 deletions
30
.github/semantic.yml
vendored
30
.github/semantic.yml
vendored
|
|
@ -1,30 +0,0 @@
|
||||||
# Always validate the PR title AND all the commits
|
|
||||||
titleAndCommits: true
|
|
||||||
|
|
||||||
# Allow use of Merge commits (eg on github: "Merge branch 'master' into feature/ride-unicorns")
|
|
||||||
# this is only relevant when using commitsOnly: true (or titleAndCommits: true)
|
|
||||||
allowMergeCommits: true
|
|
||||||
|
|
||||||
# Allow use of Revert commits (eg on github: "Revert "feat: ride unicorns"")
|
|
||||||
# this is only relevant when using commitsOnly: true (or titleAndCommits: true)
|
|
||||||
allowRevertCommits: true
|
|
||||||
|
|
||||||
# For allowed PR types: https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json
|
|
||||||
# Tool Reference: https://github.com/zeke/semantic-pull-requests
|
|
||||||
|
|
||||||
# By default types specified in commitizen/conventional-commit-types is used.
|
|
||||||
# See: https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json
|
|
||||||
# You can override the valid types
|
|
||||||
types:
|
|
||||||
- BREAKING CHANGE
|
|
||||||
- feat
|
|
||||||
- fix
|
|
||||||
- docs
|
|
||||||
- style
|
|
||||||
- refactor
|
|
||||||
- perf
|
|
||||||
- test
|
|
||||||
- build
|
|
||||||
- ci
|
|
||||||
- chore
|
|
||||||
- revert
|
|
||||||
|
|
@ -21,6 +21,7 @@ pull_request_rules:
|
||||||
- name: Automatic merge on CI success and review
|
- name: Automatic merge on CI success and review
|
||||||
conditions:
|
conditions:
|
||||||
- status-success=Sider
|
- status-success=Sider
|
||||||
|
- status-success=Check Commit Titles
|
||||||
- status-success=Python Unit Tests (MariaDB) (1)
|
- status-success=Python Unit Tests (MariaDB) (1)
|
||||||
- status-success=Python Unit Tests (MariaDB) (2)
|
- status-success=Python Unit Tests (MariaDB) (2)
|
||||||
- status-success=Python Unit Tests (Postgres) (1)
|
- status-success=Python Unit Tests (Postgres) (1)
|
||||||
|
|
|
||||||
25
commitlint.config.js
Normal file
25
commitlint.config.js
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
module.exports = {
|
||||||
|
parserPreset: 'conventional-changelog-conventionalcommits',
|
||||||
|
rules: {
|
||||||
|
'subject-empty': [2, 'never'],
|
||||||
|
'type-case': [2, 'always', 'lower-case'],
|
||||||
|
'type-empty': [2, 'never'],
|
||||||
|
'type-enum': [
|
||||||
|
2,
|
||||||
|
'always',
|
||||||
|
[
|
||||||
|
'build',
|
||||||
|
'chore',
|
||||||
|
'ci',
|
||||||
|
'docs',
|
||||||
|
'feat',
|
||||||
|
'fix',
|
||||||
|
'perf',
|
||||||
|
'refactor',
|
||||||
|
'revert',
|
||||||
|
'style',
|
||||||
|
'test',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
@ -82,10 +82,5 @@
|
||||||
"snyk": true,
|
"snyk": true,
|
||||||
"nyc": {
|
"nyc": {
|
||||||
"report-dir": ".cypress-coverage"
|
"report-dir": ".cypress-coverage"
|
||||||
},
|
|
||||||
"commitlint": {
|
|
||||||
"extends": [
|
|
||||||
"@commitlint/config-conventional"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue