Skip to content

Instantly share code, notes, and snippets.

@coldclimate
Created June 25, 2013 11:31
Show Gist options
  • Save coldclimate/5857788 to your computer and use it in GitHub Desktop.
Save coldclimate/5857788 to your computer and use it in GitHub Desktop.
Find which repo each of your PRs was destined for using GitHubAPI + JQ
for i in `seq 1 170`; do RESULT=`curl -s -u username:password "https://api.github.com/repos/owner/repo/pulls/${i}" | jq '.base | {ref}'| grep ref`; echo "${i}:${RESULT}";done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment