[go: up one dir, main page]

Difference of structure between ListIssuesOptions, ListGroupIssuesOptions, and ListProjectIssuesOptions

Created by: cyd01

There is a type difference for NotMilestone item in ListIssuesOptions, ListGroupIssuesOptions, and ListProjectIssuesOptions structure: *string or *[]string.

From issues.go file:

type ListIssuesOptions struct {
	ListOptions
       ...
	NotMilestone     *string `url:"not[milestone],omitempty" json:"not[milestone],omitempty"`
       ...
}

type ListGroupIssuesOptions struct {
	ListOptions
       ...
	NotMilestone     *string `url:"not[milestone],omitempty" json:"not[milestone],omitempty"`
       ...
}

type ListProjectIssuesOptions struct {
	ListOptions
       ...
	NotMilestone       *[]string        `url:"not[milestone],omitempty" json:"not[milestone],omitempty"`
       ...
}

I think it should be the same.