Skip to content

Commit 9eff956

Browse files
committed
Update README with prominent examples and improved description
- Add concrete examples using marin#1773 (Issue) and marin#1723 (PR) - Include links to gist mirrors and specific comments - Explain use case: complex Markdown editing benefits from IDE features - Update package description to clarify clone/edit/push workflow - Add footer-style link definitions for cleaner markdown
1 parent 12ec2f6 commit 9eff956

2 files changed

Lines changed: 23 additions & 9 deletions

File tree

README.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# ghpr
22

3-
GitHub PR/Issue management tool for local iteration with gist mirroring.
3+
"Clone" GitHub PRs/issues, locally edit title/description/comments, "push" back to GitHub, and mirror to Gists.
4+
5+
- Sometimes PR and issue descriptions/comments warrant more complex editing than GitHub's web UI comfortably allows.
6+
- `ghpr` lets you "clone" PRs and issues locally as Markdown files (including titles and comments), so you can edit them with your favorite IDE, then "push" updates back to GitHub.
7+
- `ghpr` also mirrors PR/issue content to Gists, for version control and easy sharing / backing up / syncing across machines.
8+
9+
**Examples:**
10+
- [marin#1773]: issue with complex description and comments ([e.g.][1773 comment]); mirrored to [this gist][1773 gist]
11+
- [marin#1723]: PR with complex description, mirrored to [this gist][1723 gist]
412

513
## Features
614

@@ -22,12 +30,16 @@ pip install ghpr-py
2230
### Basic Workflow
2331

2432
```bash
25-
# Clone a PR or issue
33+
# Clone a PR or issue (to `gh/123` by default
2634
ghpr clone https://github.com/owner/repo/pull/123
2735
# or
2836
ghpr clone owner/repo#123
2937

30-
# Show differences
38+
# Make edits to:
39+
# - Title / Description: `gh/123/repo#123.md`
40+
# - Comment files: `zNNNNNN-<author>.md` (existing comments) or `new.md` (new comments)
41+
42+
# Show differences (between local "clone" and GitHub)
3143
ghpr diff
3244

3345
# Push changes
@@ -58,7 +70,7 @@ The `push` command will:
5870
### Uploading Images
5971

6072
```bash
61-
# Upload image(s) to the gist and get markdown URLs
73+
# Upload image(s) to this issue or PR's Gist mirror, and get markdown URLs
6274
ghpr upload screenshot.png
6375
# Output: ![screenshot.png](https://gist.githubusercontent.com/...)
6476
```
@@ -77,7 +89,7 @@ Since PRs are issues in GitHub's API, we use the same `gh/{number}/` pattern for
7789

7890
## Shell Integration (Optional)
7991

80-
For power users who want shorter aliases, `ghpr` provides shell integration:
92+
For users who want shorter aliases, `ghpr` provides shell integration:
8193

8294
### Bash/Zsh
8395

@@ -117,6 +129,8 @@ See the full list with:
117129
ghpr shell-integration bash
118130
```
119131

120-
## Development
121-
122-
Repository: [runsascoded/ghpr](https://github.com/runsascoded/ghpr)
132+
[marin#1773]: https://github.com/marin-community/marin/issues/1773
133+
[1773 comment]: https://github.com/marin-community/marin/issues/1773#issuecomment-3478991552
134+
[1773 gist]: https://gist.github.com/ryan-williams/857fcaa8b2f80a250a70ac0250634ee5
135+
[marin#1723]: https://github.com/marin-community/marin/pull/1723
136+
[1723 gist]: https://gist.github.com/f38c0ab59897cfb57c99081b7d87af54

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "ghpr-py"
77
version = "0.1.2"
8-
description = "GitHub PR/Issue management: clone, sync, and iterate on PR/issue descriptions and comments locally, with gist mirroring"
8+
description = "GitHub PR/Issue management: clone, edit, and push PR/issue descriptions and comments, with gist mirroring"
99
readme = "README.md"
1010
requires-python = ">=3.10"
1111
license = {text = "MIT"}

0 commit comments

Comments
 (0)