|
| 1 | +# PR title using [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) |
| 2 | + |
| 3 | +## Introduction |
| 4 | +The Conventional Commits specification is a lightweight convention on top of commit messages. |
| 5 | +It provides an easy set of rules for creating an explicit commit history; which makes it easier to write automated |
| 6 | +tools on top of. |
| 7 | + |
| 8 | +## Usage |
| 9 | +Every PR which is not in draft mode should follow conventional commit convention for PR title. |
| 10 | +It allows us to generate release notes and avoid merge conflicts in [release_notes.md file](../../release_notes.md) |
| 11 | + |
| 12 | +### PR title |
| 13 | +Pull request title should be: `<type>([optional scope]): <description>` |
| 14 | + |
| 15 | +where |
| 16 | +`<type>` - [one of following](###Type) |
| 17 | +`[optional scope]` - additional information |
| 18 | +`<description>` - description of pr |
| 19 | + |
| 20 | +### Type |
| 21 | + |
| 22 | +- `build` - Changes that affect the build system or external dependencies (dependencies update) |
| 23 | +- `ci` - Changes to our CI configuration files and scripts (basically directory `.github/workflows`) |
| 24 | +- `docs` - Documentation only changes |
| 25 | +- `feat` - A new feature |
| 26 | +- `fix` - A bug fix |
| 27 | +- `chore` - Changes which does not touch the code (ex. manual update of release notes). It will not generate release notes |
| 28 | +changes |
| 29 | +- `refactor` - A code change that contains refactor |
| 30 | +- `style` - Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) |
| 31 | +- `test` - Adding missing tests or correcting existing tests and also changes for our test app |
| 32 | +- `perf` - A code change that improves performance (I do not think we will use it) |
| 33 | + |
| 34 | +### Examples |
| 35 | + |
| 36 | +- `feat: Add locales description command for ios and android` -> https://github.com/Flank/flank/pull/969 |
| 37 | +- `fix: rate limit exceeded ` -> https://github.com/Flank/flank/pull/919 |
| 38 | +- `ci: Added leading V to version name ` -> https://github.com/Flank/flank/pull/980 |
| 39 | +- `refactor: config entities and arguments` -> https://github.com/Flank/flank/pull/831 |
| 40 | +- `docs: Add secrets and vision doc` -> https://github.com/Flank/flank/pull/922 |
| 41 | +- `build: Disable Auto Doc Generation` -> https://github.com/Flank/flank/pull/942 |
| 42 | +- `test: added multi modules to test app` -> https://github.com/Flank/flank/pull/857 |
| 43 | +- `chore: Release v20.08.1` -> https://github.com/Flank/flank/pull/982 |
0 commit comments