Pull Requests
Step-by-Step GitHub Process
If you're new to code review on GitHub, follow these steps:
- Create a Feature Branch: Never push directly to the
mainbranch. Create a new branch for your work (See Branching for how to name your branch). - Make Your Changes & Commit: Work on your task and commit your code to your branch.
- Push and Create a Pull Request (PR): Push your branch to GitHub and go to the "Pull Requests" tab to create a new PR. Target the
mainbranch. - Fill out the PR Template: We have a PR template. Describe what you did.
- Request Reviewers: Assign one or more team members as reviewers. This is how you officially ask for a code review (See Code Review for steps to review codes).
- Address Feedback: Reviewers will leave comments. Discuss, make any requested changes, and push new commits to your branch. The PR will update automatically.
- Merge: Once approved, you (or a teamate) can merge the PR into
main. Delete the feature branch after a successful merge (unless you intend to continue working on it).
Pull Request Requirements
All pull request within the project must adhere to the following requirements:
- At least one team member should review submitted code.
- If applicable, a different team member should witness the code working live.
- Reviewers should:
- Identify syntactical errors.
- Ensure changes align with the task requirements.
- Verify adherence to Section 8.1 Coding Guidelines.
- All reviewer's comments must be addressed before the pull request is completed.
- All merge conflicts must be resolved before the pull request is completed.