Video in progress

Strong Junior 🤝 Soft skills

How do you write a pull request description, and what does the reviewer need?

What changed and why, how I tested it, and what the reviewer should pay attention to. A link to the ticket and, if needed, a screenshot or a sample request.

📖 Answer

A good description speeds up the review. A PR with an empty description often waits for days.

A sample:

## What
Partial refund for an order added. Ticket: PAY-231

## Why
Right now only a full refund is possible, and support calculates by hand.

## How it was tested
- RefundServiceTest: 6 new cases
- Tried manually locally with the Payme sandbox

## Pay attention to
- a new column in the `refunds` table (migration V42), default 0 for old rows
- I calculate the amount with `BigDecimal`, rounding HALF_UP

A few more habits:

  • Keep the PR small. Nobody reads a 1,500-line PR carefully.
  • Split refactoring and a new feature into separate PRs.
  • Be the first to review the diff yourself: leftover debug System.out and forgotten TODOs show up at this stage.