@d3lm/pr-stats 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -5
- package/dist/tui-app.mjs +478 -245
- package/package.json +28 -20
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# pr-stats
|
|
2
2
|
|
|
3
|
-
An interactive terminal UI, built with [OpenTUI](https://github.com/anomalyco/opentui) and React, that shows statistics for a GitHub user, e.g., time to review, size of authored PRs, or comments received on them. It works with any repository your GitHub login can see. It has queue
|
|
3
|
+
An interactive terminal UI, built with [OpenTUI](https://github.com/anomalyco/opentui) and React, that shows statistics for a GitHub user, e.g., time to review, size of authored PRs, or comments received on them. It works with any repository your GitHub login can see. It has a queue tab for the open PRs awaiting your review, a Your PRs tab that splits into your open PRs and a merged-and-closed report, chart tabs for the review-time, size, and comments reports, and a live options modal.
|
|
4
|
+
|
|
5
|
+

|
|
4
6
|
|
|
5
7
|
## Requirements
|
|
6
8
|
|
|
@@ -11,7 +13,7 @@ The TUI renders through native FFI, so it needs either Node 26.4 or newer, or [B
|
|
|
11
13
|
|
|
12
14
|
## Install
|
|
13
15
|
|
|
14
|
-
```
|
|
16
|
+
```bash
|
|
15
17
|
npm install -g @d3lm/pr-stats
|
|
16
18
|
```
|
|
17
19
|
|
|
@@ -19,17 +21,17 @@ You can also run it without installing through `npx @d3lm/pr-stats`. The bunx eq
|
|
|
19
21
|
|
|
20
22
|
## Usage
|
|
21
23
|
|
|
22
|
-
```
|
|
24
|
+
```bash
|
|
23
25
|
pr-stats
|
|
24
26
|
```
|
|
25
27
|
|
|
26
|
-
Without flags, it looks at PRs from the last 90 days across all repositories you can access. It opens on a tab that lists the open PRs awaiting your review with how long each has been waiting,
|
|
28
|
+
Without flags, it looks at PRs from the last 90 days across all repositories you can access. It opens on a tab that lists the open PRs awaiting your review with how long each has been waiting. The Your PRs tab next to it has two sub-tabs, which the `t` key switches. The first lists your own authored PRs that are still open with their age and size. The second charts how your authored PRs got created, merged, and closed, telling a merge apart from a close without one, with time-to-merge percentiles, a histogram and trend, a merge-time heatmap, weekly created and merged volumes, an outcome gauge, and the most recently merged and closed PRs. The remaining tabs hold the time-to-review report, the PR size report, and the comments report with a histogram of comments per PR, a scatter of comments against PR size, and the most commented PRs. When the data spans multiple repos, every tab opens on a repo picker that drills into one repo or the aggregate across all of them, and on the two queue lists the `g` key groups the aggregate list by repo.
|
|
27
29
|
|
|
28
30
|
Node gates the FFI that OpenTUI renders through behind the `--experimental-ffi` flag, and the launcher re-executes itself with that flag when it is missing, so a plain `pr-stats` works without extra flags on both runtimes.
|
|
29
31
|
|
|
30
32
|
All flags pre-seed the options modal:
|
|
31
33
|
|
|
32
|
-
```
|
|
34
|
+
```bash
|
|
33
35
|
# Limit the search to one repository and a start date
|
|
34
36
|
pr-stats --repo owner/name --since 2026-01-01
|
|
35
37
|
|