Skip to content

Commit 5e50f02

Browse files
bkcsoftunknwon
authored andcommitted
Add Status-flag to EditIssueOption (#41)
* EditIssueOption takes Status-flag * json-element renamed 'state' to reflect GitHub-API * Renamed Status=>State for EditIssueOption
1 parent 51c4df8 commit 5e50f02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

issue.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ type EditIssueOption struct {
7878
Body *string `json:"body"`
7979
Assignee *string `json:"assignee"`
8080
Milestone *int64 `json:"milestone"`
81+
State *string `json:"state"`
8182
}
8283

8384
func (c *Client) EditIssue(owner, repo string, index int64, opt EditIssueOption) (*Issue, error) {

0 commit comments

Comments
 (0)