diff --git a/gitea/pull.go b/gitea/pull.go index 8d9c524..a7194d7 100644 --- a/gitea/pull.go +++ b/gitea/pull.go @@ -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