When contributing to this repository, please follow the guidelines below.
- Update the main and dev branches to the latest version.
- Create new branch.
- Do it from the branch it will be merged back into (usually dev).
- Prefix it with your initials (eg.
la/auth
).
- Work peacefully in your branch.
- Pull dev to the latest version.
- Rebase your branch onto dev.
- Squash your local commits.
- You can do it afterwards, but it is advisable to do it before you push it.
- Push branch to GitHub (origin with the same name)
- After finishing up your feature, open a Pull Request into the dev branch.
- Describe what you did with bullet points.
- Make sure you added at least unit tests.
- If CI passes, ask for someone to review your PR.
- Make sure you follow the language's conventions.
- The code owner is responsible for making necessary changes and updating the PR.
- Wait for one approval before merging into dev.
- Squash and merge the pull request into the dev branch, and delete the branch in the origin.
The main is sacred. The code is always working and is deployable. NEVER work directly on main and never push to it from a local version or from any branch.
The dev is where you branch off and merge in your code. If something does break, you want to fix it as soon as possible.