Skip to content

Instantly share code, notes, and snippets.

@Voloshin-Sergei
Created November 3, 2020 13:10
Show Gist options
  • Star 80 You must be signed in to star a gist
  • Fork 23 You must be signed in to fork a gist
  • Save Voloshin-Sergei/ffbec67c6d9fcb32b0df014ababba0e9 to your computer and use it in GitHub Desktop.
Save Voloshin-Sergei/ffbec67c6d9fcb32b0df014ababba0e9 to your computer and use it in GitHub Desktop.
Шпаргалка по оформлению коммитов

Требования к именам коммитов

  • Названия коммитов должны быть согласно гайдлайну
  • Должен использоваться present tense ("add feature" not "added feature")
  • Должен использоваться imperative mood ("move cursor to..." not "moves cursor to...")

Примеры имен коммитов

init: - используется для начала проекта/таска. Примеры:
  • 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: - исправил ошибку в ранее реализованной функциональности. Примеры:
  • 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

refactor: - новой функциональности не добавлял / поведения не менял. Файлы в другие места положил, удалил, добавил. Изменил форматирование кода (white-space, formatting, missing semi-colons, etc). Улучшил алгоритм, без изменения функциональности. Примеры:
  • refactor: change structure of the project
  • refactor: rename vars for better readability
  • refactor: apply eslint
  • refactor: apply prettier

docs: - используется при работе с документацией/readme проекта. Примеры:
  • docs: update readme with additional information
  • docs: update description of run() method
@ZaharBorisenko
Copy link

Спасибо

@KlimTester
Copy link

Thanks

@ArtemG8
Copy link

ArtemG8 commented May 1, 2024

Спасибо!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment