The repository that I am looking at has a great number of issues that I would like to read but it's not manageable while scrolling in GitHub interace. Is there an option to export or print a full list of issues for a repository?
There is an Issues API. To get all issues from a repo, you can use cURL:
curl -i https://api.github.com/repos/username/reponame/issues
This returns a JSON encoded list of all issues. And …
curl -i https://api.github.com/repos/username/reponame/issues?status=open
… returns all open issues. Now you just have to convert the JSON to CSV and you are set.
You can issue
hub command for that.
- Clone the repo.
hub(e.g. on macOS run:
brew install hub).
hub issuein your repo directory to list the open issues (it's in Markdown format).
hub --help for more info:
These GitHub commands are provided by hub: pull-request Open a pull request on GitHub fork Make a fork of a remote repository on GitHub and add as remote create Create this repository on GitHub and add GitHub as origin browse Open a GitHub page in the default browser compare Open a compare page on GitHub release List or create releases (beta) issue List or create issues (beta)
usage: git issue
List summary of the open issues for the project that the "origin" remote points to.
Note: Above reads
git issue, because it expects that you've alias
git (GH-966), e.g.
I've cooked up this helper: https://runkit.io/fiatjaf/586a5b3110e9fd0014ff8aa7/branches/master/formspree/formspree?status=open which uses GitHub API.
formspree/formspree with your own user and repository name. It is a RunKit endpoint. The source code is at https://runkit.com/fiatjaf/586a5b3110e9fd0014ff8aa7.