From 903dce03bd2226c6fa98cdecd577cfda3fae111c Mon Sep 17 00:00:00 2001 From: John Olheiser Date: Thu, 9 Jan 2020 17:23:19 +0000 Subject: [PATCH 1/3] Add some PR list options --- gitea/pull.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gitea/pull.go b/gitea/pull.go index 8d9c524..8bb9226 100644 --- a/gitea/pull.go +++ b/gitea/pull.go @@ -58,8 +58,10 @@ type PullRequest struct { // ListPullRequestsOptions options for listing pull requests type ListPullRequestsOptions struct { - Page int `json:"page"` - State string `json:"state"` + Page int `json:"page"` + State string `json:"state"` + Sort string `json:"sort"` + Milestone int64 `json:"milestone"` } // ListRepoPullRequests list PRs of one repository -- 2.40.1 From 58f8465c3edc45e1cc71e474b8cc98aa3c3f37fe Mon Sep 17 00:00:00 2001 From: John Olheiser Date: Thu, 9 Jan 2020 19:20:54 +0000 Subject: [PATCH 2/3] Add enums --- gitea/pull.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gitea/pull.go b/gitea/pull.go index 8bb9226..a7194d7 100644 --- a/gitea/pull.go +++ b/gitea/pull.go @@ -59,7 +59,9 @@ type PullRequest struct { // ListPullRequestsOptions options for listing pull requests type ListPullRequestsOptions struct { 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"` } -- 2.40.1