Коммит f7517368 создал по автору Timothée Mazzucotelli's avatar Timothée Mazzucotelli
Просмотр файлов

refactor: Detect more commit types (Karma/Angular), rework section titles

владелец 8e86701a
......@@ -200,16 +200,20 @@ class AngularStyle(CommitStyle):
TYPES: dict[str, str] = {
"build": "Build",
"ci": "CI",
"perf": "Performance Improvements",
"chore": "Chore",
"ci": "Continuous Integration",
"deps": "Dependencies",
"doc": "Docs",
"docs": "Docs",
"feat": "Features",
"fix": "Bug Fixes",
"perf": "Performance Improvements",
"ref": "Code Refactoring",
"refactor": "Code Refactoring",
"revert": "Reverts",
"docs": "Docs",
"style": "Style",
"refactor": "Code Refactoring",
"test": "Tests",
"chore": "Chore",
"tests": "Tests",
}
SUBJECT_REGEX: Pattern = re.compile(
r"^(?P<type>(%s))(?:\((?P<scope>.+)\))?: (?P<subject>.+)$" % ("|".join(TYPES.keys())) # noqa: WPS323 (%)
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать