Skip to content

Is API head filter even working? #24354

Discussion options

You must be logged in to vote

Hey @tsipa 👋

For the head-ref you need to include either the user or org value like: tsipa:series/357901=>bpf-next. We call it out in our docs, here:

docs.github.com

Pulls - GitHub Docs

…where:

Filter pulls by head user or head organization and branch name in the format of user:ref-name or organization:ref-name . For example: github:new-script-format or octocat:test-branch .

Give this a try:

curl -L -X GET 'https://api.github.com/repos/tsipa/bpf-next/pulls?state=closed&base=bpf-next&head=tsipa:series/357901=%3Ebpf-next'

Should work! 🤞

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