commitizen / commitizen/cz-cli
[skip-ci] generates an invalid commit message
- Lenguaje dominante
- JavaScript
- Estrellas
- 17.5k
- Forks
- 566
- Merge medio
- 8 h 16 min
- PR fusionados (30 d)
- 1
Descripción
Hey *,
I've prepared an internal repository to enable the provided gitlab-ci template. The [manual](https://commitizen-tools.github.io/commitizen/tutorials/gitlab_ci/) states that `The commit message executed automatically by the CI must include [skip-ci] `
I have done so via the [provided example](https://commitizen-tools.github.io/commitizen/commands/bump/#bump_message).
So my `.cz.toml` looks like
```toml
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "$version"
version_scheme = "semver"
version_provider = "cargo"
update_changelog_on_bump = true
major_version_zero = true
bump_message = "release $current_version → $new_version [skip-ci]"
```
If I run now locally (or within the CI) `cz bump`, it shows me the following error message:
```
release 0.5.0 → 0.6.0 [skip-ci]
tag to create: 0.6.0
increment detected: MINOR
2nd git.commit error: "commitizen check.........................................................Failed
- hook id: commitizen
- exit code: 14
commit validation: failed!
please enter a commit message in the commitizen format.
commit "": "release 0.5.0 → 0.6.0 [skip-ci]"
pattern: (?s)(build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert|bump)(\(\S+\))?!?:( [^\n\r]+)((\n\n.*)|(\s*))?$"
```
What am I doing wrong?
Best,
Tobi
Guía de contribución
Línea de trabajo
Comienza con la configuración `bump_message` de `.cz.toml` y el comando `cz bump`, y luego compara el mensaje generado con el patrón de validación de commitizen mostrado en el informe. Reproduce el fallo localmente y confirma que el resultado es un mensaje generado que pasa la validación y conserva el marcador requerido `[skip-ci]`.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- git, javascript
- Área
- cli, tooling
- Tipo de issue
- Error
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100