@henryqw/pi-pr 0.3.2 → 0.3.4
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 +0 -14
- package/extensions/pr.ts +3 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -27,17 +27,3 @@ Each entry is one linked `PR #number` plus one plain-language state: `<count> un
|
|
|
27
27
|
The status loads at session start, polls every 30 seconds, and refreshes after an agent successfully runs `gh pr create`, `git push`, or `/pr`. Unresolved review threads are checked every 30 seconds for 20 minutes after an open PR is first found. Each new push or remote PR update, including new comments, restarts that window. Footer and warning notification show the unresolved count when first found or increased. Last known footer count remains after review checks stop. No pull request leaves the footer blank.
|
|
28
28
|
|
|
29
29
|
`/pr` finds an open PR for current branch. When absent, it starts bundled `/skill:pi-pr-create` workflow. Agent resolves base, inspects and commits scoped changes, runs relevant validation, pushes branch, and creates or updates PR with live title and body. This workflow handles dirty worktrees; it never silently commits unrelated changes.
|
|
30
|
-
|
|
31
|
-
## Remove
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
pi remove npm:@henryqw/pi-pr
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
## Development
|
|
38
|
-
|
|
39
|
-
```bash
|
|
40
|
-
npm test --workspace @henryqw/pi-pr
|
|
41
|
-
npm run typecheck --workspace @henryqw/pi-pr
|
|
42
|
-
npm run pack:check --workspace @henryqw/pi-pr
|
|
43
|
-
```
|
package/extensions/pr.ts
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
type ExtensionAPI,
|
|
4
4
|
type ExtensionContext,
|
|
5
5
|
} from "@earendil-works/pi-coding-agent";
|
|
6
|
-
import { hyperlink } from "@earendil-works/pi-tui";
|
|
6
|
+
import { getCapabilities, hyperlink } from "@earendil-works/pi-tui";
|
|
7
7
|
|
|
8
8
|
const POLL_INTERVAL_MS = 30_000;
|
|
9
9
|
const REVIEW_POLL_WINDOW_MS = 20 * 60_000;
|
|
@@ -142,7 +142,8 @@ function statusFor(pullRequest: PullRequest, ci: CiStatus): Status {
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
export function formatPullRequest(pullRequest: PullRequest, theme: ExtensionContext["ui"]["theme"], unresolved = 0): string {
|
|
145
|
-
const
|
|
145
|
+
const prText = theme.fg("text", `PR #${pullRequest.number}`);
|
|
146
|
+
const link = getCapabilities().hyperlinks ? hyperlink(prText, pullRequest.url.href) : prText;
|
|
146
147
|
const status = unresolved > 0
|
|
147
148
|
? { text: `${unresolved} unresolved`, color: "warning" as const }
|
|
148
149
|
: statusFor(pullRequest, ciStatus(pullRequest.statusCheckRollup));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@henryqw/pi-pr",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Show the current branch pull request status in the Pi footer.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"pack:check": "npm pack --dry-run"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@earendil-works/pi-coding-agent": "^0.84.
|
|
30
|
-
"@earendil-works/pi-tui": "^0.84.
|
|
29
|
+
"@earendil-works/pi-coding-agent": "^0.84.4",
|
|
30
|
+
"@earendil-works/pi-tui": "^0.84.4"
|
|
31
31
|
},
|
|
32
32
|
"repository": {
|
|
33
33
|
"type": "git",
|