Using apiv4, can I get all PRs that have been merged into a branch? #24407
Answered
by
czieglerAC
czieglerAC
asked this question in
API and Webhooks
-
Using the following query, I can get all PRs that have been merged *from* my branch into other branches:
which is not very useful to me. I have tried to get all refs and get the associatedPullRequests from all refs with myBranch as the baseName, however I have far too many refs for this work and I really want the most recently created PRs. As far as I know there is no way to sort head refs by creation date/last commit date, so I am stuck |
Beta Was this translation helpful? Give feedback.
Answered by
czieglerAC
Jul 9, 2019
Replies: 1 comment
-
Turns out the solution was simple… just use pullRequests instead of associatedPullRequests
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Turns out the solution was simple… just use pullRequests instead of associatedPullRequests