[TASK] Commits #5 (https://github.com/SENATOROVAI/intro/issues/5) #577
Closed
AleksandrShushunov wants to merge 6 commits intoSENATOROVAI:mainfrom
Closed
[TASK] Commits #5 (https://github.com/SENATOROVAI/intro/issues/5) #577AleksandrShushunov wants to merge 6 commits intoSENATOROVAI:mainfrom
AleksandrShushunov wants to merge 6 commits intoSENATOROVAI:mainfrom
Conversation
Comment on lines
+1
to
+40
| """[TASK] Commits.""" | ||
|
|
||
| # 1. Опишите своими словами назначение каждого из этих типов коммитов: | ||
| # feat, fix, docs, style, refactor, test, build, ci, perf, chore. | ||
| # | ||
| # feat - Добавление новой функции. | ||
| # fix - Исправление багa. | ||
| # docs - Изменения только в документации. | ||
| # style - Изменение стиля кода, не затрагивающее его назначение. | ||
| # refactor - Изменение структуры кода, не меняющие его поведения. | ||
| # test - Добавление тестов или изменение существующих. | ||
| # build - Изменения, затрагивающие сборку системы или внешние зависимости. | ||
| # ci - Изменения в CI конфигурации или скриптах. | ||
| # perf - Изменения, улучшающие производительность. | ||
| # chore - Служебные изменения, не затрагивающие рабочий код. | ||
| # | ||
| # 2. Представьте, что вы исправили баг в функции, которая некорректно округляет числа. Сделайте фиктивный коммит и напишите для него сообщение в соответствии с Conventional Commits (используя тип fix). | ||
| # | ||
| # git commit -m "fix: incorrect rounding" | ||
| # | ||
| # 3. Добавление новой функциональности: | ||
| # Допустим, вы реализовали новую функцию generateReport в проекте. Сделайте фиктивный коммит с типом feat, отражающий добавление этой функциональности | ||
| # | ||
| # git commit -m "feat: add generateReport func" | ||
| # | ||
| # 4. Модификация формата кода или стилей: | ||
| # Представьте, что вы поправили отступы и форматирование во всём проекте, не меняя логики кода. Сделайте фиктивный коммит с типом style | ||
| # | ||
| # git commit -m "style: fix Indentation and Formatting" | ||
| # | ||
| # 5. Документация и тестирование: | ||
| # | ||
| # Сделайте фиктивный коммит с типом docs, добавляющий или улучшающий документацию для вашей новой функции. | ||
| # | ||
| # git commit -m "docs: add doc for new func" | ||
| # | ||
| # Сделайте фиктивный коммит с типом test, добавляющий тесты для этой же функции. | ||
| # | ||
| # git commit -m "test: add tests for new func" | ||
| # |
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Closes SENATOROVAI/intro#5