How we work with Git
We use Forking Workflow5 to collaborate in this project.
Steps to open a Pull Request
- Fork the repository1.
- Create a
branch
in your local copy with the name<type>/<ticket>-<description>
8. - Edit the files and make the commit/s.
- Push your changes to your
branch
. - Open the Pull Request.3
Caution
Each Pull Request must be on top of main
branch to merge it. In order to achieve this, you have to sync your fork2 and rebase4 the main
branch.
How to write a commit
All the commits should follow the format of Conventional Commits6, as show in the next example:
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]
How to write a good commit message
Disclaimer
This section is a summary of cbeams article: How to write a Git Commit message
TL;DR
The commit subject must complete the next sentence:
If applied, this commit will your subject line here
Example:
- If applied, this commit will update getting started documentation
- If applied, this commit will remove deprecated methods
- If applied, this commit will release version 1.0.0
- If applied, this commit will merge pull request #123 from user/branch
To write a good commit message, it should follow the next directives:
- Separate subject from body with a blank line
- Limit the subject line to 50 characters
- Capitalize the subject line
- Do not end the subject line with a period
- Use the imperative mood in the subject line
- Wrap the body at 72 characters
- Use the body to explain what and why vs. how
To go deeper is each point, please see the article7
-
Example:
feat/010-create_topic_endpoint
↩