chore(repo): remove scopes as mandatory

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
This commit is contained in:
Oliver Bähler
2023-10-24 18:40:41 +02:00
committed by Dario Tranchitella
parent 6d7523addf
commit 4d25594df9
3 changed files with 3 additions and 28 deletions
+1 -12
View File
@@ -27,18 +27,7 @@ jobs:
fix
test
sec
requireScope: false
scopes: |
all
chart
operator
manifest
website
e2e
release
repo
deps
make
requireScope: false
wip: false
# If the PR only contains a single commit, the action will validate that
# it matches the configured pattern.
+1 -15
View File
@@ -173,7 +173,7 @@ The semantics should indicate the change and it's impact. The general format for
| |_______ Scope
|____________ Type
The commits are checked on pull-request. If the commit message does not follow the format, the workflow will fail. See the [Types](#types) and [Scopes](#scopes) sections for more information.
The commits are checked on pull-request. If the commit message does not follow the format, the workflow will fail. See the [Types](#types) for the supported types. The scope is not required but helps to provide more context for your changes. Try to use a scope if possible.
### Types
@@ -187,17 +187,3 @@ The following types are allowed for commits and pull requests:
* `test`: test related changes
* `sec`: security related changes
### Scopes
The following types are allowed for commits and pull requests:
* `all`: changes that affect all components
* `chart`: changes to the Helm chart
* `operator`: changes to the operator
* `manifest`: changes to the manifest installer
* `website`: changes to the website
* `e2e`: changes to the e2e testing process
* `release`: changes to the release process
* `repo`: changes to general repository files
* `deps`: dependency updates
* `make`: changes to Makefile
+1 -1
View File
@@ -2,8 +2,8 @@ const Configuration = {
extends: ['@commitlint/config-conventional'],
plugins: ['commitlint-plugin-function-rules'],
rules: {
'scope-enum': [2, 'always', ['all', 'chart', 'operator', 'manifest', 'deps', 'release', 'website', 'repo', 'e2e', 'make']],
'type-enum': [2, 'always', ['chore', 'ci', 'docs', 'feat', 'test', 'fix', 'sec']],
'body-max-line-length': [1, 'always', 500],
},
/*
* Whether commitlint uses the default ignore rules, see the description above.