A before/after comparison contrasts an artifact’s previous and changed states so reviewers can understand intent without reconstructing every detail from code. It is especially useful when a picture can show more than prose. section 2.3.2
Choose a visual aid that matches the change:
- Use screenshots for layout, styling, responsive behavior, or redesigns. section 2.3.2
- Use an automatically generated preview deployed to a review environment when reviewers need to inspect the result directly. section 2.3.2
- Use diagrams or other visual aids for API endpoint hierarchies and file-directory restructures, even when the change is not visual by nature. section 2.3.2
Responsive component change
Instead of listing every styling difference, show the component before and after on tablet, mobile, and TV layouts, then summarize the main differences in the pull request description. section 2.3.2
Table 2.2 Description elements based on categorization prefix
|
If you used this categorization prefix in the title:
|
These are some expected components to place in the description:
|
|---|---|
feat:
Alternatives:
feat(component or project): feature: feature(component or project): |
Context/justification
Use cases
How has this been tested?
Preview (if applicable)
Documentation
Tests
|
fix:
|
Context/justification
Linked Issue/ticket #
Before-/after-fix comparison
How to test it
Documentation
Tests
|
docs:
|
Context/justification
Linked Issue/ticket #
Use cases
Preview (if applicable)
|
chore:
|
Context/justification
|
breaking:
|
Context/justification
How has this been tested?
Affected projects
Important dates
Mitigation/next steps
Documentation
Tests
|
For fix-oriented pull requests, include a before-/after-fix comparison alongside context, testing guidance, documentation, and tests. section 2.3.2
