Your pull requests on GitHub, week by week
What shipped and in which features, how work flowed from opened to merged, where pull requests wait and on whom, and what each person did: counted from GitHub, read back as patterns, and, when you ask, as a retro.
Before you start
- A repository with a GitHub remote, and your GitHub sign-in (Settings → GitHub, a
GITHUB_TOKEN, or a signed-ingh). A token withreposcope is enough. - Optional: a model, for the reading and Ask. Every number and pattern works without one.
Pick the days#
Open Insights in Code Review and choose Delivery. It counts a window of whole days on your clock: the last 7 days (the default), the last 30 days, or a Custom range of up to 92 days within the last year. Previous window and Next window step by the window’s own length, Back to today returns, and every number is compared with the window of as many days before it.
The first time, Delivery reads the last 7 days and everything open, draws them, then reads further back a week at a time behind the page. What it read is kept on your Mac, so switching windows asks GitHub only for days it hasn’t seen. After ten minutes it asks only what changed; Refresh asks now.
Highlights: what to look at first#
A card each, most important first: what merged and the features it shipped, what merged with no review, what waits on someone, what is too large to review well, features under way, merged against the window before, and time to merge. Each opens its section or its list. Under them, questions to ask about the window.
The left rail holds the five sections: Highlights, Shipped, Flow, Pull requests and People. The page remembers the one you were on.
Shipped: features, not just pull requests#
A line (7 merged across 5 features · 2 under way), then each feature with its status and its pull requests. Features are taken from what your team already writes down, in this order:
| First found in | Example |
|---|---|
| Milestone | Checkout v2 |
| A ticket key | PAY-123 at the start of the title or in the branch |
| A label naming a feature | slack-inbox (not a kind, a size or a priority) |
| The title’s scope | feat(slack): …, Slack inbox: …, [Slack] … |
| The issue it closes | Its scope, then the issue itself |
| The branch | feature/<area>/… |
What none of them names is Other changes. Review what merged on a feature opens everything it merged as one range in Code Review.
Flow: how work moves#
Five numbers, each against the window before, with a line over the windows before it: Merged, Opened, Time to merge, First review and Open at the end. Times are medians, so one month-old pull request doesn’t move a week. Charts under them:
- Merged and opened, per day.
- Reviewed before merging: the share of what merged that had a review first. A review after the merge isn’t a gate.
- Time to merge: the median, and where the slowest tenth start.
- Open pull requests at each day’s end, drafts included.
- Size of what merged: the median lines changed, and how many reached 1,000.
Pull requests: where work waits#
Every open pull request by stage: Draft → Waiting for review → Changes asked → Approved → Merged, with the oldest wait at each. A stage lists its pull requests; Review on one opens it in Code Review.
Needs a hand lists stuck work, not people: waiting for review two days or more, changes asked two days ago with nothing pushed since, 1,000 lines or more, and a reviewer asked by four or more.
People: who did what#
Badges for what someone did well (merged most, reviewed most, fastest first review, smallest pull requests), each with the person’s picture, and a sortable table of authors and reviewers. A name opens their work beside the page with their pull requests, each opening in place to its files and diffs.
Read it back: patterns, then a retro#
Under the sections, the window is read back:
- Patterns, counted.
Throughput against the window before, review coverage, size, time to merge and to first review, what waits, who merges and who reviews, how much is under way. Each says its numbers, names its pull requests and people, and draws its picture. No model.
- The reading, on request.
What went well?, What didn’t go well?, Insights, and why and Action items (with who could take each). Each has its own Generate; Refresh writes all four. A point stands only when it cites a pattern, and links its pull requests and people. A reading is marked stale once the window’s numbers move.
- Ask.
The thread at the bottom has the window, its patterns and the reading as context, one line per pull request, never cut.
What it cannot see#
- 1,000 pull requests per search. A window busier than that says so.
- The past as it is now. A past week’s drafts are as they are today, and who was asked to review is known for this week only: GitHub keeps no history of either.
- Review outside GitHub, over a call or pairing, isn’t counted.
- Teams asked to review aren’t named: that needs
read:org, which Delivery doesn’t ask for.
Next steps#
Something unclear or out of date? Tell us; a person on the team reads every note.