Название коммита должно состоять из 4 частей: фича (бизнес-сущность), техническая-сущность, тип изменения, описание. При этом фича может разделяться (точкой) на подфичи, а описание содержать номер задачи. Первые три части разделяются /
, перед описанием ставится двоеточие:
const commitMessage = `${featureName}.${subFeatureName}/${techType}/${changeType}: ${issueNumber} ${description}`;
shopCard.amount/style/mod: #27 outline
- изменили стиль аутлайна для инпута суммы на корзинеshopCard/test/add: #28 snapshots
- добавлено снапшот-тестирование для корзиныapp/build/fix: #29 reduce bundle size
- logic - business logic of user feature
- style - view (UI) of user feature
- util - utility functions and services
- type - types definition
- test - tests for functional
- doc - description and specification
- example - storybook, docz, etc
- deps - third party dependency changes (replaces, forks, API improves)
- perf - performance changes
- pretty - prettify formating, white-space, missing semi-colons, etc
- config: changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm), configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
- add - new functional
- mod - modifying functional with behavior changes
- fix - correcting functional without behavior changes (refactor, inner interface updates)
- del - delete functional