Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Filtering pull requests by branch doesnt work #2710

Open
1 task done
lumattr opened this issue Jul 8, 2024 · 1 comment
Open
1 task done

[BUG]: Filtering pull requests by branch doesnt work #2710

lumattr opened this issue Jul 8, 2024 · 1 comment
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Bug Something isn't working as documented

Comments

@lumattr
Copy link

lumattr commented Jul 8, 2024

What happened?

Im trying to use the head query parameter as the documentation suggests but im not getting anything back. Even using the branches own label nothing gets returned.

const pull = await octokit.request('GET /repos/{owner}/{repo}/pulls/{pull_number}', { 
  owner, repo, headers,
  pull_number: 91
})
console.log(pull.data.head.label)

const pulls = await octokit.request('GET /repos/{owner}/{repo}/pulls', { 
  owner, repo, headers,
  head: pull.data.head.label
})
console.log(pulls.data)

Versions

@octokit/core 6.1.2, Node v20.12.2

Relevant log output

❯ node main.mjs
org:branchname
[]

Code of Conduct

  • I agree to follow this project's Code of Conduct
@lumattr lumattr added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented labels Jul 8, 2024
Copy link

github-actions bot commented Jul 8, 2024

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@github-project-automation github-project-automation bot moved this to 🆕 Triage in 🧰 Octokit Active Jul 8, 2024
@kfcampbell kfcampbell added Status: Up for grabs Issues that are ready to be worked on by anyone and removed Status: Triage This is being looked at and prioritized labels Jul 15, 2024
@kfcampbell kfcampbell moved this from 🆕 Triage to 🔥 Backlog in 🧰 Octokit Active Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Bug Something isn't working as documented
Projects
Status: 🔥 Backlog
Development

No branches or pull requests

2 participants