| 221 | } |
| 222 | |
| 223 | type Issue struct { |
| 224 | Assignees []User `json:"assignees"` |
| 225 | Author User `json:"user"` |
| 226 | AuthorAssociation string `json:"author_association"` |
| 227 | Body string `json:"body"` |
| 228 | ClosedAt time.Time `json:"closed_at"` |
| 229 | CommentsCount int `json:"comments"` |
| 230 | CreatedAt time.Time `json:"created_at"` |
| 231 | ID string `json:"node_id"` |
| 232 | Labels []Label `json:"labels"` |
| 233 | // This is a PullRequest field which does not appear in issue results, |
| 234 | // but lives outside the PullRequest object. |
| 235 | IsDraft *bool `json:"draft,omitempty"` |
| 236 | IsLocked bool `json:"locked"` |
| 237 | Number int `json:"number"` |
| 238 | PullRequest PullRequest `json:"pull_request"` |
| 239 | RepositoryURL string `json:"repository_url"` |
| 240 | // StateInternal should not be used directly. Use State() instead. |
| 241 | StateInternal string `json:"state"` |
| 242 | StateReason string `json:"state_reason"` |
| 243 | Title string `json:"title"` |
| 244 | URL string `json:"html_url"` |
| 245 | UpdatedAt time.Time `json:"updated_at"` |
| 246 | } |
| 247 | |
| 248 | type PullRequest struct { |
| 249 | URL string `json:"html_url"` |
nothing calls this directly
no outgoing calls
no test coverage detected