Here's how to use this easy little script
- Change the properties at the top of the file to the repo/user you want to fetch
- Change the location for the PHP binary to match your system
- Be sure the
$_filepath can be written to (or change it)
What it does
The script connects to the Github API and pulls down the entire issues list in a json format. It then caches this whole result where the file path points to and all following commands use this cached copy for their queries.
The time to live for the file refresh is two days (by default) from the creation of the cache file.
Multi-list support: You can now also pull down issues from multiple repos and store them locally like this:
This will override your defaults and request a different list. This will be stored in a different cache file.
./gh-issues by itself will list the issues from your default repo.
./gh-issues --display=detail --id=53 -- show details of issue 53 and all comments.
./gh-issues --display=comments --id=53 -- show only comments of issue 53.
- Allow comment updates, pushed when script next connects to github
- Create new comments/issues