- Don't use merge, only rebase (to keep a linear commit history)
- Do not change other people's branches unless absolutely necessary
- Recheck your commit history before creating a pull request
- Check you're on the right branch, never commit directly in main
Create a new branch, if you want to add something new. Naming branch is <type>/<name of stuff>
.
Commits are added according to conventional commits. Those
<type>(<scope>): <body>
.
The <type>
field must take one of these values:
feat
to add new functionalityfix
to fix a bug in the programrefactor
for code refactoring, such as renaming a variabletest
to add tests, refactor themstruct
for changes related to a change in the structure of the project (BUT NOT CODE), for example, changing folder locationsci
for various ci/cd tasksdocs
for changes in documentation
The <body>
field contains the gist of the changes in the present imperative in English without the dot in
at the end, the first word is a verb with a small letter.
Examples:
- Good: "feat: add module for future BST implementations"
- Bad: "Added module for future BST implementations."
Forbidden to merge your pull request into the branch yourself.
If you click on the green button, then make sure that it says REBASE AND MERGE
The review takes place in the form of comments to pull requests, discussions in the team chat and personal communication.