Add some PR list options #217
|
@ -58,8 +58,12 @@ type PullRequest struct {
|
|||
|
||||
// ListPullRequestsOptions options for listing pull requests
|
||||
type ListPullRequestsOptions struct {
|
||||
Page int `json:"page"`
|
||||
State string `json:"state"`
|
||||
Page int `json:"page"`
|
||||
// open, closed, all
|
||||
|
||||
State string `json:"state"`
|
||||
// oldest, recentupdate, leastupdate, mostcomment, leastcomment, priority
|
||||
Sort string `json:"sort"`
|
||||
Milestone int64 `json:"milestone"`
|
||||
}
|
||||
|
||||
// ListRepoPullRequests list PRs of one repository
|
||||
|
|
Loading…
Reference in New Issue
Block a user
can you add a comment before "State":
// enum: open,closed,all
and to Sort:
// enum: oldest,recentupdate,leastupdate,mostcomment,leastcomment,priority
Done.
enum
is unnecessary because this isn't being read by a machine, so I just commented the possible typesthanks