@henryqw/pi-pr 3.0.0 → 3.0.1

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.
Files changed (2) hide show
  1. package/README.md +9 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -8,9 +8,7 @@ See the current branch pull request in the Pi footer. Use `/pr` to run its next
8
8
  pi install npm:@henryqw/pi-pr
9
9
  ```
10
10
 
11
- Requires an authenticated GitHub CLI session (`gh auth login`) and a checkout on GitHub.com or GitHub Enterprise. The PR hostname selects its GitHub API host. It works in generic Pi sessions outside Herdr.
12
-
13
- The comment sweep resolves its bundled helper and references from the installed package skill path. It does not require an external `jq` executable.
11
+ Requires an authenticated GitHub CLI session (`gh auth login`) and a checkout on GitHub.com or GitHub Enterprise. Run `gh auth status` to verify authentication.
14
12
 
15
13
  ## Feedback snapshots
16
14
 
@@ -36,10 +34,11 @@ write files.
36
34
 
37
35
  ## Use
38
36
 
39
- Run `/pr` without arguments in a GitHub checkout. It reads the current branch pull request and local state, then runs one route.
37
+ Run `/pr` without arguments in a GitHub checkout. It reads the current branch pull request and local state, then runs one route. The PR hostname selects its GitHub API host, and the extension works outside Herdr.
40
38
 
41
39
  | Surface | Type | Purpose |
42
40
  | --- | --- | --- |
41
+ | `/pr` | command | Run the current pull request's next safe route. |
43
42
  | Footer | ui | Show a linked `PR #number` and one plain-language status. |
44
43
  | Widget | ui | Show one actionable icon-prefixed `Run /pr to …` hint. |
45
44
 
@@ -51,7 +50,7 @@ Each footer entry is one linked `PR #number` plus one plain-language status: `N
51
50
 
52
51
  ![Flowchart showing /pr reading fresh GitHub and local state, choosing the first matching condition, and stopping after one route](./docs/pr-routing.svg)
53
52
 
54
- ## Routes
53
+ ### Routes
55
54
 
56
55
  | Current condition | `/pr` route |
57
56
  | --- | --- |
@@ -78,7 +77,7 @@ Current-branch discovery matches the exact push repository and ref. It finds a f
78
77
 
79
78
  A no-action state includes a draft, merged or closed pull request, running CI, pending review, or blocked merge policy. It also includes a mutating workflow whose tree is dirty or whose local HEAD differs from the PR head.
80
79
 
81
- ## Route priority
80
+ ### Route priority
82
81
 
83
82
  A missing pull request uses creation. For an existing pull request, the first matching condition wins:
84
83
 
@@ -91,7 +90,9 @@ A missing pull request uses creation. For an existing pull request, the first ma
91
90
 
92
91
  Ordinary conversation comments do not trigger a route or block a merge. Changes requested and unresolved review threads can select the package comment sweep.
93
92
 
94
- ## Refresh
93
+ The comment sweep resolves its bundled helper and references from the installed package skill path. It does not require an external `jq` executable.
94
+
95
+ ### Refresh
95
96
 
96
97
  The footer and widget load at session start. They refresh after local commits, PR creation, pushes, and each dispatched workflow settles. They also poll every 30 seconds. Polling updates presentation only and may be stale.
97
98
 
@@ -99,7 +100,7 @@ The create widget stays hidden until the local branch has a commit beyond its cr
99
100
 
100
101
  Presentation uses route priority, so draft appears before running CI. `/pr` reads fresh state before routing or merging. The command is authoritative for actions.
101
102
 
102
- ## Safety limits
103
+ ## Limits and recovery
103
104
 
104
105
  - `/pr` takes no arguments and does not open a browser.
105
106
  - It does not run `/done` or `/sweep`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@henryqw/pi-pr",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Run /pr to automatically choose the current pull request's next safe lifecycle step: create, update, address feedback, fix CI, or merge when ready.",
5
5
  "keywords": [
6
6
  "pi-package",