prq-cli 0.2.0 → 0.3.0
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 +9 -0
- package/dist/bin/prq.js +14 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -52,6 +52,15 @@ prq open superdoc-dev/superdoc#482 # opens directly
|
|
|
52
52
|
prq open https://github.com/org/repo/pull/482
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
+
### `prq review <identifier>`
|
|
56
|
+
|
|
57
|
+
Open a PR's "Files changed" tab for review.
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
prq review 482
|
|
61
|
+
prq review superdoc-dev/superdoc#482
|
|
62
|
+
```
|
|
63
|
+
|
|
55
64
|
### `prq nudge <identifier>`
|
|
56
65
|
|
|
57
66
|
Post a comment on a PR asking if it's still active.
|
package/dist/bin/prq.js
CHANGED
|
@@ -6437,6 +6437,16 @@ async function openCommand(identifier, config) {
|
|
|
6437
6437
|
await openUrl(pr.url);
|
|
6438
6438
|
}
|
|
6439
6439
|
|
|
6440
|
+
// src/commands/review.ts
|
|
6441
|
+
async function reviewCommand(identifier, config) {
|
|
6442
|
+
const pr = await resolveIdentifier(identifier, config);
|
|
6443
|
+
const label = `${pr.owner}/${pr.repo}#${pr.number}`;
|
|
6444
|
+
const filesUrl = `${pr.url}/files`;
|
|
6445
|
+
process.stderr.write(source_default.dim(`Opening review for ${label}...
|
|
6446
|
+
`));
|
|
6447
|
+
await openUrl(filesUrl);
|
|
6448
|
+
}
|
|
6449
|
+
|
|
6440
6450
|
// src/categorize.ts
|
|
6441
6451
|
function timeAgo(dateStr) {
|
|
6442
6452
|
const now = Date.now();
|
|
@@ -10668,6 +10678,10 @@ function createCLI() {
|
|
|
10668
10678
|
const config = loadConfig({});
|
|
10669
10679
|
await openCommand(identifier, config);
|
|
10670
10680
|
});
|
|
10681
|
+
program2.command("review <identifier>").description("Open PR files changed tab for review").action(async (identifier) => {
|
|
10682
|
+
const config = loadConfig({});
|
|
10683
|
+
await reviewCommand(identifier, config);
|
|
10684
|
+
});
|
|
10671
10685
|
program2.command("nudge <identifier>").description("Post a nudge comment on a PR").option("-m, --message <msg>", "Custom nudge message").option("-y, --yes", "Skip confirmation").action(async (identifier, opts) => {
|
|
10672
10686
|
const config = loadConfig({});
|
|
10673
10687
|
await nudgeCommand(identifier, config, {
|