Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Export Github issues from the command line
echo "Please enter your Github username"
read username
echo "Please enter your Github password"
read -s password
echo "What is the Github repo you'd like to download issues from?"
echo "Format is user/repo"
read repo
filename=$(echo "$repo.json" | tr / -)
echo "Dumping $repo to $filename ..."
# remove -u if not private
curl -u "$username:$password" "$repo/issues?per_page=1000&state=all" > $filename

This comment has been minimized.

Copy link
Owner Author

@oelna oelna commented Jan 24, 2016

Make this file executable before using: chmod +x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment