Skip to content

Using apiv4, can I get all PRs that have been merged into a branch? #24407

Discussion options

You must be logged in to vote

Turns out the solution was simple… just use pullRequests instead of associatedPullRequests

{
organization(login: "MyOrg") {
  repository(name: "MyRepo") {
    pullRequests(baseRefName:"MyBranch") {
      nodes{
        title
          }
        }
      }
    }
  }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant