Last active
September 13, 2018 15:01
-
-
Save therahulprasad/54986b032a2745639eaa7283aa5222e6 to your computer and use it in GitHub Desktop.
Script for finding PR to a specific branch using terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s -u "{username}" "https://api.github.com/repos/{user}/{repo}/pulls?per_page=100&state=all" > /tmp/tmp.json && cat /tmp/tmp.json | jq '.[] | select(.base.ref=="{base_branch}") | .html_url' ### Replace `.html_url` with `keys` to check all available keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment