Add Status-flag to EditIssueOption (#41)
* EditIssueOption takes Status-flag * json-element renamed 'state' to reflect GitHub-API * Renamed Status=>State for EditIssueOption
This commit is contained in:
parent
51c4df8c35
commit
5e50f02925
1 changed files with 1 additions and 0 deletions
1
issue.go
1
issue.go
|
@ -78,6 +78,7 @@ type EditIssueOption struct {
|
||||||
Body *string `json:"body"`
|
Body *string `json:"body"`
|
||||||
Assignee *string `json:"assignee"`
|
Assignee *string `json:"assignee"`
|
||||||
Milestone *int64 `json:"milestone"`
|
Milestone *int64 `json:"milestone"`
|
||||||
|
State *string `json:"state"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) EditIssue(owner, repo string, index int64, opt EditIssueOption) (*Issue, error) {
|
func (c *Client) EditIssue(owner, repo string, index int64, opt EditIssueOption) (*Issue, error) {
|
||||||
|
|
Loading…
Reference in a new issue