-
-
Notifications
You must be signed in to change notification settings - Fork 123
[TASK] Commits #5 (https://github.com/SENATOROVAI/intro/issues/5) #577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
AleksandrShushunov
wants to merge
6
commits into
SENATOROVAI:main
from
AleksandrShushunov:TASK-Commits-#5
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
e99b1bf
task2
AleksandrShushunov bee1b5b
task3
AleksandrShushunov 56b1db3
task4
AleksandrShushunov a5bcdc3
task5_1
AleksandrShushunov 4107a89
task5_2
AleksandrShushunov 80bd1ee
[TASK] Commits #5(https://github.com/SENATOROVAI/intro/issues/5)
AleksandrShushunov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| { | ||
| "cells": [ | ||
| { | ||
| "cell_type": "code", | ||
| "execution_count": null, | ||
| "id": "8591ba0c", | ||
| "metadata": {}, | ||
| "outputs": [], | ||
| "source": [ | ||
| "\"\"\"[TASK] Commits.\"\"\"" | ||
| ] | ||
| }, | ||
| { | ||
| "cell_type": "markdown", | ||
| "id": "8529183e", | ||
| "metadata": {}, | ||
| "source": [ | ||
| "1. Опишите своими словами назначение каждого из этих типов коммитов:\n", | ||
| "feat, fix, docs, style, refactor, test, build, ci, perf, chore.\n", | ||
| "\n", | ||
| "feat - Добавление новой функции.\n", | ||
| "fix - Исправление багa.\n", | ||
| "docs - Изменения только в документации.\n", | ||
| "style - Изменение стиля кода, не затрагивающее его назначение.\n", | ||
| "refactor - Изменение структуры кода, не меняющие его поведения.\n", | ||
| "test - Добавление тестов или изменение существующих.\n", | ||
| "build - Изменения, затрагивающие сборку системы или внешние зависимости.\n", | ||
| "ci - Изменения в CI конфигурации или скриптах.\n", | ||
| "perf - Изменения, улучшающие производительность.\n", | ||
| "chore - Служебные изменения, не затрагивающие рабочий код.\n", | ||
| "\n", | ||
| "2. Представьте, что вы исправили баг в функции, которая некорректно округляет числа. Сделайте фиктивный коммит и напишите для него сообщение в соответствии с Conventional Commits (используя тип fix).\n", | ||
| "\n", | ||
| "git commit -m \"fix: incorrect rounding\"\n", | ||
| "\n", | ||
| "3. Добавление новой функциональности:\n", | ||
| "Допустим, вы реализовали новую функцию generateReport в проекте. Сделайте фиктивный коммит с типом feat, отражающий добавление этой функциональности\n", | ||
| "\n", | ||
| "git commit -m \"feat: add generateReport func\"\n", | ||
| "\n", | ||
| "4. Модификация формата кода или стилей:\n", | ||
| "Представьте, что вы поправили отступы и форматирование во всём проекте, не меняя логики кода. Сделайте фиктивный коммит с типом style\n", | ||
| "\n", | ||
| "git commit -m \"style: fix Indentation and Formatting\"\n", | ||
| "\n", | ||
| "5. Документация и тестирование:\n", | ||
| "\n", | ||
| "Сделайте фиктивный коммит с типом docs, добавляющий или улучшающий документацию для вашей новой функции.\n", | ||
| "\n", | ||
| "git commit -m \"docs: add doc for new func\"\n", | ||
| "\n", | ||
| "Сделайте фиктивный коммит с типом test, добавляющий тесты для этой же функции.\n", | ||
| "\n", | ||
| "git commit -m \"test: add tests for new func\"\n" | ||
| ] | ||
| } | ||
| ], | ||
| "metadata": { | ||
| "language_info": { | ||
| "name": "python" | ||
| } | ||
| }, | ||
| "nbformat": 4, | ||
| "nbformat_minor": 5 | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,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" | ||
| # | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Сделай ревью