mirror of
https://github.com/go-gitea/gitea
synced 2025-07-12 13:37:20 +00:00
allow filtering /repos/{owner}/{repo}/pulls by target base branch queryparam (#33684)
Co-authored-by: Royce Remer <rremer@salesforce.com> Co-authored-by: delvh <dev.lh@web.de>
This commit is contained in:
@ -59,6 +59,10 @@ func ListPullRequests(ctx *context.APIContext) {
|
||||
// description: Name of the repo
|
||||
// type: string
|
||||
// required: true
|
||||
// - name: base_branch
|
||||
// in: query
|
||||
// description: Filter by target base branch of the pull request
|
||||
// type: string
|
||||
// - name: state
|
||||
// in: query
|
||||
// description: State of pull request
|
||||
@ -132,6 +136,7 @@ func ListPullRequests(ctx *context.APIContext) {
|
||||
Labels: labelIDs,
|
||||
MilestoneID: ctx.FormInt64("milestone"),
|
||||
PosterID: posterID,
|
||||
BaseBranch: ctx.FormTrim("base_branch"),
|
||||
})
|
||||
if err != nil {
|
||||
ctx.APIErrorInternal(err)
|
||||
|
Reference in New Issue
Block a user