Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stscoundrel/troubleman
List open issues in Github by user. For all the troubles you forgot you're in.
https://github.com/stscoundrel/troubleman
github-api go golang issues
Last synced: 21 days ago
JSON representation
List open issues in Github by user. For all the troubles you forgot you're in.
- Host: GitHub
- URL: https://github.com/stscoundrel/troubleman
- Owner: stscoundrel
- License: mit
- Created: 2022-06-21T16:31:23.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-06T08:17:45.000Z (10 months ago)
- Last Synced: 2024-01-06T09:23:47.136Z (10 months ago)
- Topics: github-api, go, golang, issues
- Language: Go
- Homepage: https://pkg.go.dev/github.com/stscoundrel/troubleman
- Size: 36.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Troubleman
List issues in Github by username. For the times when you can't recall all the troubles you're in.
## Install
`go get -d github.com/stscoundrel/troubleman`
## Usage
Troubleman exposes two functions: one for listing issues by user, other for listing same data grouped by repositories.
```go
package mainimport (
"fmt""github.com/stscoundrel/troubleman/issues"
)func main() {
// Get list of all issues
issuesResult, issuesError := issues.GetIssues("stscoundrel")
fmt.Println(issuesResult[0])
// {
// Title: "Test issue 1",
// Link: "https://github.com/stscoundrel/test-repo/issues/1",
// Content: "Lorem ipsum dolor sit issue",
// RepositoryLink: "https://github.com/stscoundrel/test-repo",
// },// Get list of issues of issues grouped by repositories.
repositoriesResult, repositoriesError := issues.GetRepositories("stscoundrel")
fmt.Println(repositoriesResult[0])
// {
// Title: "stscoundrel/test-repo",
// Link: "https://github.com/stscoundrel/test-repo",
// Count: 666,
// Issues: [] // list of issues, per upper structure
// },
}
```## What's in the name?
"Troublemaker" was the first thing to come to mind when thinking of "something that looks for issues". Altered it a bit to refer to [a song](https://www.youtube.com/watch?v=3OC2aPCuzjo)