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:
Kim Carlbäcker 2016-08-19 17:13:44 +02:00 committed by 无闻
parent 51c4df8c35
commit 5e50f02925

View file

@ -78,6 +78,7 @@ type EditIssueOption struct {
Body *string `json:"body"`
Assignee *string `json:"assignee"`
Milestone *int64 `json:"milestone"`
State *string `json:"state"`
}
func (c *Client) EditIssue(owner, repo string, index int64, opt EditIssueOption) (*Issue, error) {