Skip to content

Commit

Permalink
IssuesService.Edit: add state_reason
Browse files Browse the repository at this point in the history
state_reason can be 'completed' or 'not_planned'.
  • Loading branch information
parkr committed Jun 23, 2022
1 parent 8309da1 commit c7561ea
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions github/issues.go
Expand Up @@ -77,13 +77,14 @@ func (i Issue) IsPullRequest() bool {
// It is separate from Issue above because otherwise Labels
// and Assignee fail to serialize to the correct JSON.
type IssueRequest struct {
Title *string `json:"title,omitempty"`
Body *string `json:"body,omitempty"`
Labels *[]string `json:"labels,omitempty"`
Assignee *string `json:"assignee,omitempty"`
State *string `json:"state,omitempty"`
Milestone *int `json:"milestone,omitempty"`
Assignees *[]string `json:"assignees,omitempty"`
Title *string `json:"title,omitempty"`
Body *string `json:"body,omitempty"`
Labels *[]string `json:"labels,omitempty"`
Assignee *string `json:"assignee,omitempty"`
State *string `json:"state,omitempty"`
StateReason *string `json:"state_reason,omitempty"`
Milestone *int `json:"milestone,omitempty"`
Assignees *[]string `json:"assignees,omitempty"`
}

// IssueListOptions specifies the optional parameters to the IssuesService.List
Expand Down

0 comments on commit c7561ea

Please sign in to comment.