octokit.rb: Filter pull requests by branch name is not working

Hey

I’m trying to filter pull requests by branch name according to this:

client.pull_requests('org/repo',  base: 'branch-name')

But it isn’t working, it’s returning all opened pull requests instead.

Is that the right way to retrieve a PR for a given branch name?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 18 (9 by maintainers)

Most upvoted comments

I just had the same issue. The documentation is a bit misleading here: image

@tarebyte you nailed it! Thanks a ton. I changed to the org name and it worked fine! super cool

While making these requests @phstc I realized for a PR based on a branch in the repo I used the education org name in the head request.

Maybe give that a go?