# digest
**Generate a shareable weekly digest of your pending PR reviews โ perfect for Slack, Teams, or email.**
Unlike `report` (which shows what you've already reviewed), `digest` gives you a snapshot of what's currently waiting, grouped by age, repository, and author.
## When to Use
- Monday morning: "Let me share the team digest in Slack"
- Before a standup: "Quick status check for the channel"
- Weekly wrap-up: "Here's what's pending heading into the weekend"
- Stakeholder update: "Here's a plain-text summary of review load"
## Synopsis
```bash
prctrl digest [OPTIONS]
```
## Options
| `-d, --days <DAYS>` | Number of days to include | `7` |
| `--raw` | Output as raw Markdown (for Slack/Teams) | `false` |
| `--repo <REPO>` | Filter by repository name (partial match, case-insensitive) | |
| `--author <AUTHOR>` | Filter by author username (partial match, case-insensitive) | |
| `-P, --priority` | Show priority scores and most urgent PR | `false` |
| `-s, --since-days <DAYS>` | Only show PRs created in the last N days (newer PRs) | |
| `--older-than <DAYS>` | Only show PRs older than N days (neglected PRs) | |
## Examples
```bash
# Pretty terminal digest
prctrl digest
# Shorter lookback (last 3 days)
prctrl digest --days 3
# Raw Markdown for pasting into Slack
prctrl digest --raw
# Raw Markdown with custom window
prctrl digest --days 14 --raw
# Filter by repository
prctrl digest --repo api
# Filter by author
prctrl digest --author alice
# Show priority scores and most urgent PR
prctrl digest --priority
# Combined: raw markdown filtered by repo with priority
prctrl digest --raw --repo backend --priority
# Only show PRs created in the last 3 days (recent PRs)
prctrl digest --since-days 3
# Only show PRs older than 7 days (neglected PRs)
prctrl digest --older-than 7
```
## Output Examples
### Terminal output
```
๐ Weekly Review Digest โ last 7 days
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Summary
Total PRs: 12
Lines changed: +2847 / -1203
๐จ Overdue (15d+): 2
โฑ๏ธ Age Breakdown
๐ New: 3
๐ฑ Fresh: 4
โณ Aging: 2
๐ฅ Stale: 1
๐ By Repository (top 5)
api-gateway: 4
frontend: 3
shared-libs: 2
๐ฅ By Author (top 5)
alice: 4
bob: 3
carol: 2
๐จ Overdue PRs (15d+)
#4821 fix: critical auth bug โ 18d old
#4798 refactor: legacy cache layer โ 16d old
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ก Use `--raw` to get Markdown output for Slack/Teams
```
### With `--priority` flag
```
๐ Weekly Review Digest โ last 7 days
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Summary
Total PRs: 12
Lines changed: +2847 / -1203
๐จ Overdue (15d+): 2
๐จ Most Urgent:
fix: critical auth bug #4821 โญโญโญโญโญ
๐ค alice โข ๐ฆ 1247 lines โข โฑ๏ธ 18d โข api-gateway
โญ Priority Breakdown:
โญโญโญโญโญ 2 PR(s) โข oldest: 18d โข +2340/-892 lines
โญโญโญโญ 3 PR(s) โข oldest: 10d โข +847/-423 lines
โญโญโญ 4 PR(s) โข oldest: 5d โข +432/-156 lines
โญโญ 2 PR(s) โข oldest: 2d โข +156/-89 lines
โญ 1 PR(s) โข oldest: 0d โข +72/-43 lines
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ก Use `--raw` to get Markdown output for Slack/Teams
๐ก Use `--priority` to show priority scores and most urgent PR
```
### Raw Markdown output (`--raw`)
```markdown
## ๐ Review Digest โ last 7 days
### By Repository
- **api-gateway**: 4 PR(s)
- **frontend**: 3 PR(s)
- **shared-libs**: 2 PR(s)
### By Author
- **alice**: 4 PR(s)
- **bob**: 3 PR(s)
- **carol**: 2 PR(s)
### Age Breakdown
- ๐ **New**: 3 PR(s)
- ๐ฑ **Fresh**: 4 PR(s)
- โณ **Aging**: 2 PR(s)
- ๐ฅ **Stale**: 1 PR(s)
### ๐จ Overdue (15d+)
- [api-gateway#4821](https://github.com/org/api-gateway/pull/4821) *fix: critical auth bug* โ 18d old
- [shared-libs#4798](https://github.com/org/shared-libs/pull/4798) *refactor: legacy cache layer* โ 16d old
```
## Tips
- Use `--raw` when posting to Slack, Teams, or email โ the Markdown renders nicely in all three
- Pipe to `pbcopy` to copy to clipboard: `prctrl digest --raw | pbcopy`
- Use `--days 1` for a daily standup digest instead of weekly
- Use `--priority` to identify the most urgent PR at a glance
- Age buckets: ๐ New 0-1d ยท ๐ฑ Fresh 2-3d ยท โณ Aging 4-7d ยท ๐ฅ Stale 8-14d ยท ๐ Overdue 15d+
- Combine filters for targeted digests: `digest --repo backend --author alice --priority`
- Use `--since-days 7` to show only recently created PRs
- Use `--older-than 7` to focus on neglected PRs waiting 7+ days
- `--since-days` and `--older-than` can be combined but `--since-days` takes precedence