Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Export Github issues from the command line
#!/bin/bash
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 ..."
echo
echo
# remove -u if not private
curl -u "$username:$password" "https://api.github.com/repos/$repo/issues?per_page=1000&state=all" > $filename
@oelna

This comment has been minimized.

Copy link
Owner Author

@oelna oelna commented Jan 24, 2016

Make this file executable before using: chmod +x dump_github_issues.sh

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