-
Notifications
You must be signed in to change notification settings - Fork 2
Добавлены правила оформления коммитов #2
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ | |
| * [Именование графических ресурсов](#именование-графических-ресурсов) | ||
| * [Структура файла](#структура-файла) | ||
| * [Структура проекта](#структура-проекта) | ||
| * [Оформление коммитов](#оформление-коммитов) | ||
|
|
||
| ## Форматирование | ||
| ### Пробелы и табуляция | ||
|
|
@@ -260,16 +261,24 @@ func numericValue(of digit: UnicodeScalar, radix: Int = 10) -> Int { | |
| * `RefreshBarButtonIcon` / `RefreshBarButtonIcon@2x` and `RefreshBarButtonIconSelected` / `RefreshBarButtonIconSelected@2x` | ||
| * `ArticleNavigationBarWhite` / `ArticleNavigationBarWhite@2x` and `ArticleNavigationBarBlackSelected` / `ArticleNavigationBarBlackSelected@2x`. | ||
|
|
||
| <!--Images that are used for a similar purpose should be grouped in respective groups in an Images folder.//--> | ||
|
|
||
| Изображения, используемые для одинаковых целей должны быть сгруппированы в папки. | ||
| ##### Важно: Перед добавлением изображения в ассет, переименуйте его. Если переименовать изображение после добавления, имя файла останется прежним. | ||
|
|
||
| ## Структура файла | ||
|
|
||
| ## Структура проекта | ||
|
|
||
|
|
||
| ## Оформление коммитов | ||
| - Коммит должен содержать только одно логическое изменение. | ||
| - Первая строка коммита (Subject) должна содержать не более 72 символов. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Никто не будет считать символы) |
||
| - Message Subject и Message Body коммита должны быть разделены пустой строкой. | ||
| - Перед публикацией коммитов в удалённый репозиторий убедитесь, что все однотипные и незначительные коммиты были объединены. | ||
| - Создавая коммит, подумайте, какая информация понадобится вам, если вы наткнётесь на этот коммит через год. | ||
|
|
||
| Структура Message коммита: | ||
| > [Ключ задачи в JIRA] Краткое описание изменений. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 1 - зачем квадратные скобки?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Может вообще название задачи в Description вынести?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Это где? |
||
| > | ||
| > Более подробное описание изменений. Оно должно объяснять, почему требуются изменения, как они решают проблему, и какие могут возникнуть ошибки. | ||
|
|
||
| [comment]: # (Ссылки) | ||
| [the one true brace style]: https://en.wikipedia.org/wiki/Indentation_style#Variant:_1TBS_(OTBS) | ||
|
|
||
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.
Я для арма писал такие правила:
Работа с коммитами
Каждый коммит должен содержать в себе логически законченное изменение. В него не должны попадать какие либо другие изменения.
Комментарий к коммиту должен быть написан на русском языке, содержать ID и заголовок задачи и краткое описание изменения.
Пример комментария: