Skip to content

Instantly share code, notes, and snippets.

@therahulprasad
Last active September 13, 2018 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save therahulprasad/54986b032a2745639eaa7283aa5222e6 to your computer and use it in GitHub Desktop.
Save therahulprasad/54986b032a2745639eaa7283aa5222e6 to your computer and use it in GitHub Desktop.
Script for finding PR to a specific branch using terminal
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