Merge pull request #13 from lunny/lunny/bug_lint_fixed

bug fixed & lint fixed
This commit is contained in:
Thomas Boerger 2016-11-10 20:08:58 +01:00 committed by GitHub
commit 2143dd1803
2 changed files with 19 additions and 19 deletions

View file

@ -11,14 +11,14 @@ import (
"time"
)
// PRStateType issue state type
type PRStateType string
// StateType issue state type
type StateType string
const (
// PRStateOpen pr is opend
PRStateOpen PRStateType = "open"
// PRStateClosed pr is closed
PRStateClosed PRStateType = "closed"
// StateOpen pr is opend
StateOpen StateType = "open"
// StateClosed pr is closed
StateClosed StateType = "closed"
)
// PullRequestMeta PR info if an issue is a PR
@ -37,7 +37,7 @@ type Issue struct {
Labels []*Label `json:"labels"`
Milestone *Milestone `json:"milestone"`
Assignee *User `json:"assignee"`
State PRStateType `json:"state"`
State StateType `json:"state"`
Comments int `json:"comments"`
Created time.Time `json:"created_at"`
Updated time.Time `json:"updated_at"`

View file

@ -30,7 +30,7 @@ func (c *Client) ListIssueComments(owner, repo string, index int64) ([]*Comment,
}
// ListRepoIssueComments list comments for a given repo.
func (c *Client) ListRepoIssuecomments(owner, repo string) ([]*Comment, error) {
func (c *Client) ListRepoIssueComments(owner, repo string) ([]*Comment, error) {
comments := make([]*Comment, 0, 10)
return comments, c.getParsedResponse("GET", fmt.Sprintf("/repos/%s/%s/issues/comments", owner, repo), nil, nil, &comments)
}