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)
I just had the same issue. The documentation is a bit misleading here:
@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
educationorg name in the head request.Maybe give that a go?