Skip to content

Commit 4dbead0

Browse files
committed
More options for fetching PRs via API
1 parent 6f22001 commit 4dbead0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

models/pull.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,11 @@ func NewPullRequest(repo *Repository, pull *Issue, labelIDs []int64, uuids []str
498498

499499
// PullRequestsOptions holds the options for PRs
500500
type PullRequestsOptions struct {
501-
Page int
502-
State string
501+
Page int
502+
State string
503+
SortType string
504+
Labels []string
505+
MilestoneID int64
503506
}
504507

505508
func listPullRequestStatement(baseRepoID int64, opts *PullRequestsOptions) *xorm.Session {

0 commit comments

Comments
 (0)