Skip to content

Commit 38d5f88

Browse files
Add X-Total-Count on /repos/{owner]/{repo}/pulls API (#11113)
Co-authored-by: techknowlogick <[email protected]>
1 parent 7eace60 commit 38d5f88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/api/v1/repo/pull.go

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ func ListPullRequests(ctx *context.APIContext, form api.ListPullRequestsOptions)
113113
}
114114

115115
ctx.SetLinkHeader(int(maxResults), listOptions.PageSize)
116+
ctx.Header().Set("X-Total-Count", fmt.Sprintf("%d", maxResults))
116117
ctx.JSON(http.StatusOK, &apiPrs)
117118
}
118119

0 commit comments

Comments
 (0)