Registry / devops / ghpr-py

ghpr-py

JSON →
library0.1.9pypypi✓ verified 81d ago

Manage GitHub PR and Issue descriptions and comments locally: clone, edit, and push bidirectional changes with gist mirroring. Current version 0.1.9, requires Python >=3.10. Active development.

pip install ghpr-py
INSTALL
IMPORT
SIG · GHPR-PY
G
ghpr-py
devopspythonv0.1.9
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

main
import ghpr
from ghpr import main

Clone a PR/Issue for local editing. Typically used via CLI: `ghpr clone user/repo 1`.

from ghpr import main import os # ghpr clone expects GITHUB_TOKEN or interactive auth if 'GITHUB_TOKEN' in os.environ: main(['clone', 'runsascoded/ghpr-py', '1'])
Debug
Known issues
breakingIn v0.1.4 the clone command argument order changed; scripts using positional args may break.
fix
Update to v0.1.4+ and use new argument order (owner/repo first).
affects: >=0.1.0, <=0.1.3
gotchaGitHub strips trailing newlines from PR descriptions; `write_description_with_link_ref` may cause diff thrashing on subsequent pulls.
fix
Upgrade to v0.1.7+ for fix.
affects: <=0.1.6
gotcha`ghpr push` will not push comments authored by others unless explicitly forced; dry-run (-n) shows warnings.
fix
Use `ghpr push --force` to override, but note you'll overwrite other authors' comments.
affects: >=0.1.5
deprecatedOld shell integration (ghprc without GHPR_DIR) may not cd into cloned directory; fixed in v0.1.6.
fix
Upgrade to v0.1.6+ and source the updated shell integration files.
affects: <=0.1.5
Upgrade
Version history
0.1.9latest on PyPI · released Mar 25, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
31
Amazon
1
OpenAI (training)
1
Resources
ghpr-py — pip install ghpr-py · libregistry