Milestone Functions accept name to identify #388
|
@ -30,6 +30,7 @@ type ListMilestoneOption struct {
|
|||
ListOptions
|
||||
// open, closed, all
|
||||
State StateType
|
||||
Name string
|
||||
}
|
||||
|
||||
// QueryEncode turns options into querystring argument
|
||||
|
@ -38,6 +39,9 @@ func (opt *ListMilestoneOption) QueryEncode() string {
|
|||
if opt.State != "" {
|
||||
query.Add("state", string(opt.State))
|
||||
}
|
||||
if len(opt.Name) != 0 {
|
||||
query.Add("name", opt.Name)
|
||||
}
|
||||
return query.Encode()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user