Pull Request Workflow
Objective
Create professional pull requests and conduct code reviews.
Tools & Technologies
GitHubcode reviewPR templates
Key Commands
gh pr create --title 'feat: add feature' --body '...'gh pr review --approvegh pr merge --squashgh pr listLab Steps
01
Create PR
Open a pull request with clear title, description, and linked issues.
02
Review
Add inline review comments on specific lines of code.
03
Address Feedback
Push additional commits to address review comments.
04
Merge Strategies
Compare merge, squash, and rebase merge strategies.
Challenges Encountered
- Force-pushing after PR review makes comments stale
- Squash merge loses individual commit context
Key Takeaways
- Write PR descriptions for reviewers who have no context
- Use draft PRs for early feedback before the code is ready