You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardExpand all lines: README.md
+22-8Lines changed: 22 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,14 @@
1
1
# ghpr
2
2
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]
4
12
5
13
## Features
6
14
@@ -22,12 +30,16 @@ pip install ghpr-py
22
30
### Basic Workflow
23
31
24
32
```bash
25
-
# Clone a PR or issue
33
+
# Clone a PR or issue (to `gh/123` by default
26
34
ghpr clone https://github.com/owner/repo/pull/123
27
35
# or
28
36
ghpr clone owner/repo#123
29
37
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)
31
43
ghpr diff
32
44
33
45
# Push changes
@@ -58,7 +70,7 @@ The `push` command will:
58
70
### Uploading Images
59
71
60
72
```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
0 commit comments