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:

  1. 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.

  2. Navigate to the repository on GitHub and open a new Pull Request (PR) by selecting your branch and comparing it with the develop branch (or main for hotfixes).

  3. Add a meaningful title and description to the PR, explaining the changes.

  4. The PR must receive at least two approvals before it can be merged into main or develop.

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.