Открыть боковую панель
Минаков Марк Александрович
git-changelog
Коммиты
f7517368
Коммит
f7517368
создал
Янв 29, 2023
по автору
Timothée Mazzucotelli
Просмотр файлов
refactor: Detect more commit types (Karma/Angular), rework section titles
владелец
8e86701a
Изменения
1
Скрыть пробелы
Построчно
Рядом
src/git_changelog/commit.py
Просмотр файла @
f7517368
...
...
@@ -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.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать