瀏覽代碼

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
version-14
Ankush Menat 2 年之前
committed by GitHub
父節點
當前提交
21a7291d00
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 4 個檔案被更改,包括 26 行新增35 行删除
  1. +0
    -30
      .github/semantic.yml
  2. +1
    -0
      .mergify.yml
  3. +25
    -0
      commitlint.config.js
  4. +0
    -5
      package.json

+ 0
- 30
.github/semantic.yml 查看文件

@@ -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

+ 1
- 0
.mergify.yml 查看文件

@@ -21,6 +21,7 @@ pull_request_rules:
- name: Automatic merge on CI success and review
conditions:
- status-success=Sider
- status-success=Check Commit Titles
- status-success=Python Unit Tests (MariaDB) (1)
- status-success=Python Unit Tests (MariaDB) (2)
- status-success=Python Unit Tests (Postgres) (1)


+ 25
- 0
commitlint.config.js 查看文件

@@ -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',
],
],
},
};

+ 0
- 5
package.json 查看文件

@@ -82,10 +82,5 @@
"snyk": true,
"nyc": {
"report-dir": ".cypress-coverage"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
}
}

Loading…
取消
儲存