From 58e2a118ba2d344886ec19d690000f40d5cf83ac Mon Sep 17 00:00:00 2001 From: x86 <123118446+spectacularfailure@users.noreply.github.com> Date: Sun, 30 Jul 2023 11:58:40 +0200 Subject: [PATCH] DOCS: add a semantic commit messages disclaimer * docs: update invalid RPC docs link * docs: add Discord widget from shields.io * docs: add a disclaimer about semantic commit messages technique in CONTRIBUTING.md * docs: add a disclaimer about semantic commit messages to the web docs * docs: add semantic sommits sections to the CONTRIBUTING ru --------- Co-authored-by: Pastukhov Nikita --- CONTRIBUTING.md | 33 +++++++++++++++++++ README.md | 3 ++ .../en/contributing/2_contributing-index.md | 33 +++++++++++++++++++ .../ru/contributing/2_contributing-index.md | 33 +++++++++++++++++++ 4 files changed, 102 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1de999a4..ced677c5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,6 +2,39 @@ If you already cloned the repository and you know that you need to deep dive in the code, here are some guidelines to set up your environment. +### Commits + +When making commits, use semantic commit messages system. + +Format: `(): ` + +Where `` is optional. + +``` +feat: add synchronous RabbitMQ wrapper +^--^ ^------------^ +| | +| +-> Summary in present tense. +| ++-------> Type: chore, docs, feat, fix, refactor, style, or test. +``` + +More Examples: + +- `feat`: (New feature for the user, not a new feature for build script) +- `fix`: (Bug fix for the user, not a fix to a build script) +- `docs`: (Changes to the documentation) +- `style`: (Formatting, linting) +- `refactor`: (Refactoring code, eg. renaming a variable) +- `test`: (Adding missing tests, refactoring tests) +- `chore`: (Updating grunt tasks etc.) + +References: + +- https://www.conventionalcommits.org/ +- https://sparkbox.com/foundry/semantic_commit_messages +- http://karma-runner.github.io/1.0/dev/git-commit-msg.html + ### Virtual environment with `venv` You can create a virtual environment in a directory using Python's `venv` module: diff --git a/README.md b/README.md index 6dc6cf32..74ed8b17 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,9 @@ GitHub + + Discord +

# Propan diff --git a/docs/docs/en/contributing/2_contributing-index.md b/docs/docs/en/contributing/2_contributing-index.md index 7799fc91..5dc50f12 100644 --- a/docs/docs/en/contributing/2_contributing-index.md +++ b/docs/docs/en/contributing/2_contributing-index.md @@ -2,6 +2,39 @@ If you already cloned the repository and you know that you need to deep dive in the code, here are some guidelines to set up your environment. +### Commits + +When making commits, use semantic commit messages system. + +Format: `(): ` + +Where `` is optional. + +``` +feat: add synchronous RabbitMQ wrapper +^--^ ^------------^ +| | +| +-> Summary in present tense. +| ++-------> Type: chore, docs, feat, fix, refactor, style, or test. +``` + +More Examples: + +- `feat`: (New feature for the user, not a new feature for build script) +- `fix`: (Bug fix for the user, not a fix to a build script) +- `docs`: (Changes to the documentation) +- `style`: (Formatting, linting) +- `refactor`: (Refactoring code, eg. renaming a variable) +- `test`: (Adding missing tests, refactoring tests) +- `chore`: (Updating grunt tasks etc.) + +References: + +- https://www.conventionalcommits.org/ +- https://sparkbox.com/foundry/semantic_commit_messages +- http://karma-runner.github.io/1.0/dev/git-commit-msg.html + ### Virtual environment with `venv` You can create a virtual environment in a directory using Python's `venv` module: diff --git a/docs/docs/ru/contributing/2_contributing-index.md b/docs/docs/ru/contributing/2_contributing-index.md index bc2a1e9f..ba620b7e 100644 --- a/docs/docs/ru/contributing/2_contributing-index.md +++ b/docs/docs/ru/contributing/2_contributing-index.md @@ -2,6 +2,39 @@ Если вы уже склонировали репозиторий и уверены, что хотите погрузить в код, вам пригодятся эти гайдлайны для настройки окружения. +### Commits + +Когда вы делаете коммиты, пожалуйста, используйте соглашение о семантическом именовании. + +Формат: `(): ` + +Где `` необязателен. + +``` +feat: add synchronous RabbitMQ wrapper +^--^ ^------------^ +| | +| +-> Краткое именование +| ++-------> Типы: chore, docs, feat, fix, refactor, style, or test. +``` + +Больше примеров: + +- `feat`: (Новый функционал для пользователей) +- `fix`: (Багфикс в рамках функционала) +- `docs`: (Изменения в документации) +- `style`: (Formatting, linting) +- `refactor`: (Рефакторинг кода, например изменение названий переменных) +- `test`: (Добавление или рефакторинг тестов) +- `chore`: ("обслуживающие" коммиты - повышение версии, апдейт зависимостей и т.д.) + +Материалы по теме: + +- https://www.conventionalcommits.org/ +- https://sparkbox.com/foundry/semantic_commit_messages +- http://karma-runner.github.io/1.0/dev/git-commit-msg.html + ### Создайте окружение `venv` Как и любой *python* проект, **Propan** лучше разрабатывать в отдельном окружении.