issue: add field to indicate state when create

This commit is contained in:
Unknwon 2016-05-11 12:18:31 -04:00
parent 1da1834d36
commit 01270dfe22
2 changed files with 2 additions and 1 deletions

View file

@ -14,7 +14,7 @@ import (
) )
func Version() string { func Version() string {
return "0.8.1" return "0.8.2"
} }
// Client represents a Gogs API client. // Client represents a Gogs API client.

View file

@ -53,6 +53,7 @@ type CreateIssueOption struct {
Assignee string `json:"assignee"` Assignee string `json:"assignee"`
Milestone int64 `json:"milestone"` Milestone int64 `json:"milestone"`
Labels []int64 `json:"labels"` Labels []int64 `json:"labels"`
Closed bool `json:"closed"`
} }
func (c *Client) CreateIssue(owner, repo string, opt CreateIssueOption) (*Issue, error) { func (c *Client) CreateIssue(owner, repo string, opt CreateIssueOption) (*Issue, error) {