@hcrosse/opencode-pr-tracker 0.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 hcrosse
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,65 @@
1
+ # OpenCode PR Tracker
2
+
3
+ Track GitHub pull requests from an OpenCode session. The plugin adds tools and
4
+ slash commands for attaching pull requests, then shows their lifecycle,
5
+ mergeability, and CI status in the TUI sidebar.
6
+
7
+ ## Requirements
8
+
9
+ - OpenCode `>=1.18.15 <2`
10
+ - [GitHub CLI](https://cli.github.com/) installed and authenticated (`gh auth status`)
11
+ - macOS or Linux to open pull requests by clicking their sidebar rows
12
+
13
+ ## Install
14
+
15
+ Install the server and TUI plugins:
16
+
17
+ ```sh
18
+ opencode plugin @hcrosse/opencode-pr-tracker
19
+ ```
20
+
21
+ OpenCode adds the package to both `opencode.json` and `tui.json`. To pin a
22
+ specific release, include its exact version:
23
+
24
+ ```sh
25
+ opencode plugin @hcrosse/opencode-pr-tracker@0.1.0
26
+ ```
27
+
28
+ Restart OpenCode after installation.
29
+
30
+ ## Commands
31
+
32
+ - `/pr-attach` accepts a canonical pull request URL or a positive pull request number for the current GitHub repository.
33
+ - `/pr-open` lets you select and open an attached pull request on macOS or Linux.
34
+ - `/pr-detach` lets you select and remove an attached pull request.
35
+ - Agents can use the `pr_attach` and `pr_detach` tools when the server plugin is enabled.
36
+
37
+ The `pr_detach` tool also accepts a positive pull request number when exactly
38
+ one session attachment has that number. Use a canonical URL when repositories
39
+ have attached pull requests with the same number.
40
+
41
+ The plugin accepts canonical URLs in the form
42
+ `https://github.com/<owner>/<repository>/pull/<number>`.
43
+
44
+ ## Sidebar
45
+
46
+ Each attached pull request appears with its repository, number, title, and
47
+ current state. Open and closed pull requests refresh at least once per minute
48
+ and when session activity changes. Click a row to open the pull request on
49
+ macOS or Linux.
50
+
51
+ | State | Appearance |
52
+ | ------------------------ | --------------------- |
53
+ | Merged | Purple, strikethrough |
54
+ | Closed | Red, strikethrough |
55
+ | Merge conflict | Red |
56
+ | Checks passed | Green |
57
+ | Checks pending | Yellow |
58
+ | Checks failed | Red |
59
+ | No checks or unavailable | Gray |
60
+
61
+ Merged and closed states take precedence. For open pull requests, merge
62
+ conflicts take precedence over CI status.
63
+
64
+ If a refresh fails, the sidebar keeps the last successful status and marks it
65
+ as stale. Merged pull requests remain attached but stop refreshing.