Add some PR list options #217

Merged
techknowlogick merged 3 commits from :pr-list into master 2020-01-13 17:58:42 +00:00

View File

@ -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
Outdated
Review

can you add a comment before "State":
// enum: open,closed,all

and to Sort:
// enum: oldest,recentupdate,leastupdate,mostcomment,leastcomment,priority

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 types

Done. `enum` is unnecessary because this isn't being read by a machine, so I just commented the possible types
Outdated
Review

thanks

thanks
State string `json:"state"`
// oldest, recentupdate, leastupdate, mostcomment, leastcomment, priority
Sort string `json:"sort"`
Milestone int64 `json:"milestone"`
}
// ListRepoPullRequests list PRs of one repository