Explorar el Código

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 hace 2 años
committed by GitHub
padre
commit
21a7291d00
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 4 ficheros con 26 adiciones y 35 borrados
  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 Ver fichero

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

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

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

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

Cargando…
Cancelar
Guardar