Skip to content

Commit 6c430ac

Browse files
Add new field for issue state reason (#2583)
1 parent 18cd63d commit 6c430ac

File tree

4 files changed

+25
-4
lines changed

4 files changed

+25
-4
lines changed

github/github-accessors.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-accessors_test.go

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-stringify_test.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/issues.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ type IssuesService service
2525
// this is an issue, and if PullRequestLinks is not nil, this is a pull request.
2626
// The IsPullRequest helper method can be used to check that.
2727
type Issue struct {
28-
ID *int64 `json:"id,omitempty"`
29-
Number *int `json:"number,omitempty"`
30-
State *string `json:"state,omitempty"`
28+
ID *int64 `json:"id,omitempty"`
29+
Number *int `json:"number,omitempty"`
30+
State *string `json:"state,omitempty"`
31+
// StateReason can be one of: "completed", "not_planned", "reopened".
32+
StateReason *string `json:"state_reason,omitempty"`
3133
Locked *bool `json:"locked,omitempty"`
3234
Title *string `json:"title,omitempty"`
3335
Body *string `json:"body,omitempty"`

0 commit comments

Comments
 (0)