Skip to content

Commit

Permalink
More options for fetching PRs via API
Browse files Browse the repository at this point in the history
  • Loading branch information
bkcsoft committed Dec 2, 2016
1 parent 6f22001 commit 4dbead0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions models/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,11 @@ func NewPullRequest(repo *Repository, pull *Issue, labelIDs []int64, uuids []str

// PullRequestsOptions holds the options for PRs
type PullRequestsOptions struct {
Page int
State string
Page int
State string
SortType string
Labels []string
MilestoneID int64
}

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

0 comments on commit 4dbead0

Please sign in to comment.