November 15, 2023 ☼ GitHub ☼ process
As we work in bigger and bigger teams/projects is essential that we put more time and effort into crafting any PR.
PRs serve as a way for team members to review, discuss, and eventually merge changes into a codebase.
The below list is what I’d consider a “reviewable PR”.
The List
The below list might differ if the proposed changes are meant to address documentation or non-code related topic.
- Has a descriptive tile (this helps reviewers quickly understand the intent of the changes)
- Follows branch naming convention
- The description field contains (at least):
- Link to backlog item or Issue or any relevant tool for tracking tickets
- The reason for the suggested changes. Can be also a link to an ADR but better if explained in context
- Tests are included
- Pipeline is green (meaning all tests passed)
- Reviewers are assigned to it
- Small number of Lines of code (maximum of 200-400 LOC)
Small tips
- Use
Draft pull requestif you are unsure of your approach and would like to gather an early feedback. It will avoid big change requests from the reviewers since you clarified a lot of things already. - Use plugins such as Git Diff Warning that helps you keep the PR small
- Automate as much as possible
- Have on-point commit messages
- Add screenshots (if it makes sense)
If you have any suggestions, questions, corrections or if you want to add anything please DM or tweet me: @zanonnicola
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.