2022-11-21 00:34:20 +08:00
|
|
|
package GithubApi
|
2022-11-26 00:38:33 +08:00
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
const IssuesURL = "https://api.github.com/search/issues"
|
|
|
|
|
|
|
|
type IssuesSearchResult struct {
|
|
|
|
TotalCount int `json:"total_count"`
|
|
|
|
Items []*Issue
|
|
|
|
}
|
|
|
|
|
|
|
|
type Issue struct {
|
2022-12-01 16:54:42 +08:00
|
|
|
Number int
|
|
|
|
HTMLURL string `json:"html_url"`
|
|
|
|
Title string
|
|
|
|
State string
|
|
|
|
User *User
|
2022-11-26 00:38:33 +08:00
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
Body string // in Markdown format
|
|
|
|
}
|
|
|
|
|
|
|
|
type User struct {
|
|
|
|
Login string
|
|
|
|
HTMLURL string `json:"html_url"`
|
|
|
|
}
|
|
|
|
|
|
|
|
var IsCategory *bool
|