This small utility helps you for query and follow repositories issues. The goal is following public repositories, so you do not need permission or an access token. Probably, I will add private repositories support, but now I only want to manage my favorite open source repositories.
$ go get github.com/klassmann/issues
$ go install github.com/klassmann/issues
add Adds a new query to your local configuration. You need to give a name to the query:
$ issues add [query-name] [query parameters]
$ issues add golang repo:golang/go is:open memory
delete Deletes a query from your local configuration.
$ issues delete [query-name]
$ issues delete golang
list Query issues from a [query-name] saved in local configuration:
$ issues list [query-name]
query Queries and shows a new search on github:
$ issues query [query-parameters]
$ issues query repo:golang/go is:open memory
queries Show the list of queries in your configuration.
$ issues queries
help Shows this help message.
Create a .issuesrc in your home directory. The file will be created automatically on first use.
{
"queries":
{
"sarama": "repo:shopify/sarama is:open",
"golang": "repo:golang/go is:open",
"django": "repo:django/django is:open"
}
}
Note: Each query should have a name and a GitHub issue search string, see more here.
Here you have an example with the cache option for saving results for 5 minutes:
{
"queries":
{
"sarama": "repo:shopify/sarama is:open",
"golang": "repo:golang/go is:open",
"django": "repo:django/django is:open"
}
"cache":"5m"
}
Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". Or you can use "nocache" when you don't want to cache anything.
- Query issues from Github
- Add, Delete and List queries from local configuration
- Colorful output
- Cache last query responses
- Github response pagination (Today the number is limited by default from github to 100 items)
- Get more issue details
- Unit tests
- Inspired by The Go Programming Language - Issue example
- Tested with go 1.9.1 darwin/amd64
