Pull Request Process - BOD-Tech-Trend-Emporium/Backend GitHub Wiki
Pull Request Process
Overview
All changes to the main
branch must go through a Pull Request (PR). No direct commits are allowed to main
. Below is the step-by-step guide to follow when creating a Pull Request.
Creating a Pull Request:
-
Once your work on a feature or bug fix is done, push your changes to a new branch. Use the appropriate naming convention, e.g.,
feature/implement-jwt
. -
Navigate to the repository on GitHub and open a new Pull Request (PR) by selecting your branch and comparing it with the
develop
branch (ormain
for hotfixes). -
Add a meaningful title and description to the PR, explaining the changes.
-
The PR must receive at least two approvals before it can be merged into
main
ordevelop
.
Merging Process:
- After receiving two approvals, the creator of the PR can merge it.
- Ensure all tests pass before merging.
- The PR should not be merged until the code is stable and ready for release or integration.