ClickThisNick
ClickThisNick

Reputation: 5250

Github API only get pull requests that have a certain label

How do I filter the results of the following command to only give me the pull requests with a certain label: "Ready To Release" with the github api?

curl -u <token>-oauth-basic https://api.github.com/repos/<reponame>/<branch>/pulls

Upvotes: 1

Views: 746

Answers (1)

ClickThisNick
ClickThisNick

Reputation: 5250

Found the answer in the Github Api

Just go to the following url and it will return the labels that the pull request is tagged with:

https://api.github.com/repos/{organization_name}/{repo}/issues/{pull_request_number}/labels?access_token='{github_token})

Upvotes: 1

Related Questions