Pull Requests — Getting Work Reviewed
The process of proposing changes, getting feedback, and merging approved work into the main project.
What is a pull request?
A pull request (PR) is like submitting a draft report for review before it gets published. You have been working on your section. Before it goes into the final document, you send it to your editor (or team) for feedback. They can approve it, suggest changes, or ask questions. Only after approval does it become part of the official version.
A pull request (often shortened to PR) is a
formal request to merge your branch into another branch (usually
develop or main). It includes:
Your changes
Every file you added, modified, or deleted — shown side by side with the original so reviewers can see exactly what changed.
A description
An explanation of what you did and why. Good PRs include context, screenshots, and testing notes.
Discussion thread
Reviewers can leave comments on specific lines of code, ask questions, or suggest improvements.
Status checks
Automated tests that run to verify your changes do not break anything. These are shown as green checkmarks or red crosses.
The PR lifecycle
The complete lifecycle of a pull request: open it, get it tested and reviewed, address any feedback, get approval, and merge.
What reviewers look for
When someone reviews a PR, they are checking several things:
Does it work?
The automated tests pass, and the feature does what it claims to do.
Is it safe?
No security issues, no accidentally deleted files, no broken functionality.
Is it clean?
The code is readable, well-organized, and follows the project's conventions.
Is it complete?
Nothing is missing — no half-implemented features or TODO comments left behind.
PR status explained
When you look at a PR on GitHub, you will see status indicators. Here is what they mean:
| Status | What it means | Action needed |
|---|---|---|
| Open | The PR exists and is waiting for review or work | Reviewer needs to look at it |
| Draft | Work in progress — not ready for review yet | Developer is still working |
| Changes requested | Reviewer found issues that need fixing | Developer needs to address feedback |
| Approved | Reviewer is happy with the changes | Ready to merge |
| Merged | Changes have been incorporated into the target branch | Done! Branch can be deleted |
| Closed | PR was abandoned without merging | Nothing — the work was discarded or redone differently |
What merging means
Merging is like accepting the final draft into the published document. The edited chapter has been reviewed, corrections applied, and the editor signs off. Now it officially becomes part of the book. The draft copy is no longer needed.
When a PR is merged, Git takes all the changes from your feature
branch and applies them to the target branch (usually develop).
After merging:
- Your changes are now part of
develop - The feature branch is typically deleted (it served its purpose)
- Any worktree associated with that branch can also be removed
The merging flow
After approval, the feature branch is merged into develop and then cleaned up.
Common things you might hear
Key takeaways
- A PR is a formal request to merge your work into the main project.
- PRs include code changes, a description, discussion, and test results.
- Work goes through review and approval before it is merged.
- After merging, the feature branch and worktree are cleaned up.