@kitlangton/ghui 0.1.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/.env.example +2 -0
- package/LICENSE +21 -0
- package/README.md +67 -0
- package/bin/ghui +3 -0
- package/package.json +54 -0
- package/src/App.tsx +1502 -0
- package/src/config.ts +9 -0
- package/src/date.ts +20 -0
- package/src/domain.ts +30 -0
- package/src/index.tsx +14 -0
- package/src/services/CommandRunner.ts +43 -0
- package/src/services/GitHubService.ts +193 -0
package/.env.example
ADDED
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Kit Langton
|
|
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,67 @@
|
|
|
1
|
+
# ghui
|
|
2
|
+
|
|
3
|
+
<img width="1420" height="856" alt="image" src="https://github.com/user-attachments/assets/5e560a4a-5887-4baa-a6d4-e1f4f0410c70" />
|
|
4
|
+
|
|
5
|
+
Terminal UI for browsing and acting on your open GitHub pull requests across repositories.
|
|
6
|
+
|
|
7
|
+
## Install Locally
|
|
8
|
+
|
|
9
|
+
Requires `bun` and an authenticated GitHub CLI (`gh auth login`).
|
|
10
|
+
|
|
11
|
+
Clone, install, and link:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
git clone https://github.com/kitlangton/ghui.git
|
|
15
|
+
cd ghui
|
|
16
|
+
bun install
|
|
17
|
+
bun link
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Run from anywhere:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
ghui
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Publish
|
|
27
|
+
|
|
28
|
+
This package publishes from GitHub Releases using npm Trusted Publishing.
|
|
29
|
+
|
|
30
|
+
If this is the first npm publish, publish once from your machine with `npm publish --access public`. Then configure npm Trusted Publishing:
|
|
31
|
+
|
|
32
|
+
- Package: `@kitlangton/ghui`
|
|
33
|
+
- Publisher: GitHub Actions
|
|
34
|
+
- Owner: `kitlangton`
|
|
35
|
+
- Repository: `ghui`
|
|
36
|
+
- Workflow filename: `publish.yml`
|
|
37
|
+
|
|
38
|
+
After that, publish by creating a GitHub Release whose tag matches `package.json` version, for example `v0.1.0`.
|
|
39
|
+
|
|
40
|
+
## Configuration
|
|
41
|
+
|
|
42
|
+
- `GHUI_AUTHOR`: author passed to `gh search prs`, defaults to `@me`
|
|
43
|
+
- `GHUI_PR_FETCH_LIMIT`: max PRs fetched, defaults to `200`
|
|
44
|
+
|
|
45
|
+
Example:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
GHUI_AUTHOR=@me ghui
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
You can also copy `.env.example` to `.env` and edit the values locally.
|
|
52
|
+
|
|
53
|
+
## Keybindings
|
|
54
|
+
|
|
55
|
+
- `up` / `down`: move selection
|
|
56
|
+
- `k` / `j`: move selection
|
|
57
|
+
- `gg` / `G`: jump to first or last pull request
|
|
58
|
+
- `ctrl-u` / `ctrl-d`: page up or down
|
|
59
|
+
- `/`: filter
|
|
60
|
+
- `enter`: expand details
|
|
61
|
+
- `esc`: return from expanded details or close modal
|
|
62
|
+
- `r`: refresh
|
|
63
|
+
- `d`: toggle draft
|
|
64
|
+
- `l`: manage labels
|
|
65
|
+
- `o`: open PR in browser
|
|
66
|
+
- `y`: copy PR metadata
|
|
67
|
+
- `q`: quit
|
package/bin/ghui
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kitlangton/ghui",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Terminal UI for GitHub pull requests",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/kitlangton/ghui.git"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/kitlangton/ghui/issues"
|
|
13
|
+
},
|
|
14
|
+
"homepage": "https://github.com/kitlangton/ghui#readme",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"github",
|
|
17
|
+
"pull-requests",
|
|
18
|
+
"terminal",
|
|
19
|
+
"tui",
|
|
20
|
+
"bun"
|
|
21
|
+
],
|
|
22
|
+
"files": [
|
|
23
|
+
"bin",
|
|
24
|
+
"src",
|
|
25
|
+
"README.md",
|
|
26
|
+
".env.example",
|
|
27
|
+
"LICENSE"
|
|
28
|
+
],
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public",
|
|
31
|
+
"registry": "https://registry.npmjs.org/"
|
|
32
|
+
},
|
|
33
|
+
"bin": {
|
|
34
|
+
"ghui": "./bin/ghui"
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"dev": "bun --watch src/index.tsx",
|
|
38
|
+
"start": "bun run src/index.tsx",
|
|
39
|
+
"typecheck": "tsc --noEmit"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@effect/atom-react": "4.0.0-beta.47",
|
|
43
|
+
"@opentui/core": "0.1.97",
|
|
44
|
+
"@opentui/react": "0.1.97",
|
|
45
|
+
"effect": "4.0.0-beta.47",
|
|
46
|
+
"react": "19.2.5",
|
|
47
|
+
"scheduler": "0.27.0"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/bun": "1.3.12",
|
|
51
|
+
"@types/react": "19.2.14",
|
|
52
|
+
"typescript": "6.0.2"
|
|
53
|
+
}
|
|
54
|
+
}
|