Git
February 16
GIT правила
Требования к именам коммитов
- Названия коммитов должны быть согласно гайдлайну
- Тип коммита должен быть только в нижнем регистре (
feat,fix,refactor,docs,style,choreи т.д.) - Должен использоваться present tense ("add feature" not "added feature")
- Должен использоваться imperative mood ("move cursor to..." not "moves cursor to...")
Примеры имен коммитов
init: start youtube-task init: start mentor-dashboard task
feat:- это реализованная новая функциональность из технического задания (добавил поддержку зумирования, добавил footer, добавил карточку продукта). Примеры:
feat: add basic page layout feat: implement search box feat: implement request to youtube API feat: implement swipe for horizontal list feat: add additional navigation button feat: add banner feat: add social links feat: add physical security section feat: add real social icons
fix: implement correct loading data from youtube fix: change layout for video items to fix bugs fix: relayout header for firefox fix: adjust social links for mobile fix: array parsing issue when multiple spaces were contained in string
refactor:- новой функциональности не добавлял/поведения не менял. Файлы в другие места положил, удалил, добавил. Улучшил алгоритм, без изменения функциональности. Примеры:
refactor: change structure of the project refactor: rename vars for better readability
docs: update readme with additional information docs: update description of run() method
style: remove trailing white spaces style: add missing semi-colons style: format code with prettier
chore: add .editorconfig file for uniform code formatting chore: rename environment variable file to .env.example