PR description tốt giúp reviewer hiểu: thay đổi gì, vì sao, test thế nào, rủi ro ở đâu.
Mục tiêu
- Viết PR summary rõ
- Ghi test evidence
- Nêu risk/rollback nếu cần
Template
textSummary: Why: Changes: Testing: Risk:
Ví dụ:
textSummary: This PR updates guest checkout validation so that phone number is optional. Why: The current behavior blocks valid guest orders when the phone number is missing. Changes: - Updated backend validation rules. - Added integration tests for guest checkout. - Updated API error handling. Testing: - Ran unit tests. - Verified guest checkout on staging.
Useful phrases
textThis PR updates... This change prevents... I verified this by... The main risk is...
Bài tập nhanh
Viết PR description cho một hotfix sửa lỗi timeout API.