Commit 74898e8
## Summary
- Add per-project health/adoption data to `release list` and `release
view` commands
- Pass `health=1` to the releases API so adoption and crash-free metrics
are populated
- Add ADOPTION and CRASH-FREE columns to the list table; add per-project
health breakdown to view
- Closes #463
## Changes
**API layer** (`src/lib/api/releases.ts`):
- `listReleasesPaginated` gains `health?: boolean` option
- `getRelease` gains optional `{ health, adoptionStages,
healthStatsPeriod }` query params
- Export `ReleaseSortValue` type for future `--sort` support
**List command** (`src/commands/release/list.ts`):
- Always requests `health=1` in both `listForOrg` and `listPaginated`
- Replaces STATUS/RELEASED columns with ADOPTION/CRASH-FREE/ISSUES
columns
- Health data extracted from first project with `hasHealthData: true`
**View command** (`src/commands/release/view.ts`):
- Requests `health=true, adoptionStages=true` on every view
- Adds "Health by Project" table section with per-project metrics
- Color-coded crash-free rates (green ≥99%, yellow ≥95%, red <95%)
- Section gracefully omitted when no project has session data
**Tests** (`test/commands/release/view.test.ts`):
- Health data rendering (human mode): checks section header, project
slugs, percentages
- Health data in JSON: verifies `projects[].healthData` fields pass
through
- No-health fallback: verifies section is omitted when `hasHealthData:
false`
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 419a033 commit 74898e8
File tree
12 files changed
+1201
-126
lines changed- docs/src/fragments/commands
- plugins/sentry-cli/skills/sentry-cli
- references
- src
- commands/release
- lib
- api
- formatters
- test/commands/release
12 files changed
+1201
-126
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
350 | | - | |
| 349 | + | |
| 350 | + | |
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| |||
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
25 | | - | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| |||
0 commit comments