Початківець
+60 XP

👋 Починай вчитися JavaScript прямо зараз — безкоштовно!

📖

Як писати commit messages

fix, feat, docs, refactor — конвенція Conventional Commits яку всі використовують

Conventional Commits — стандарт індустрії

Формат: 'тип(область): опис'

ТипКоли використовуватиПриклад
featНова функція'feat: add user login'
fixВиправлення бага'fix: correct email validation'
docsДокументація'docs: update README'
styleФорматування'style: fix indentation'
refactorРефакторинг'refactor: extract helper function'
testТести'test: add unit tests for auth'
choreТехнічні завдання'chore: update dependencies'
📝

Хороший commit message = газетний заголовок

Уяви що твій commit message — заголовок у газеті. Він має відповідати на питання 'Що змінилось?' а не 'Як?'. Поганий: 'fixed stuff'. Гарний: 'fix: resolve infinite loop in search function'. Майбутній ти скажуть 'дякую'.

Корисні дієслова для commit messages

ДієсловоПерекладПриклад
addдодати'add user profile page'
removeвидалити'remove deprecated API calls'
updateоновити'update dependencies to v2'
fixвиправити'fix navigation overflow bug'
implementреалізувати'implement dark mode toggle'
improveпокращити'improve loading performance'
refactorрефакторити'refactor auth middleware'

Pull Request — як описувати

Структура хорошого PR:

'''markdown

What changed

Added user authentication with JWT tokens.

Why

Users need to log in to access their personal data.

How to test

  1. Go to /login
  2. Enter credentials
  3. Verify token in localStorage

Screenshots

[attach if UI changed] '''

Коментарі

Увійти або Почати щоб залишити коментар.