github tools based on gh cli
Install gh-issues command:
cd gh-tools
./install.shIf /usr/local/bin is not writable, installer uses ~/.local/bin.
You can also choose your own install path:
./install.sh --prefix "$HOME/bin"After install, run directly:
gh-issues owner/repo --state all --limit 50Export issues (with comments) of a repository to local markdown files.
Usage:
gh-issues owner/repo [--state open|closed|all] [--limit N] [--outdir DIR]Or run without installation:
nu gh_issues.nu owner/repo [--state open|closed|all] [--limit N] [--outdir DIR]Details:
- Default output directory is the repo name (the part after the slash). Override with
--outdir. - File naming pattern:
issue_<number>.md. - Each file includes: metadata header, body, comments.
- Auth required: run
gh auth loginfirst and ensure access to the repo. - Progress line shows index, percentage, elapsed (e) and estimated remaining time (eta).
Example:
nu gh_issues.nu nushell/nushell --state all --limit 50