Created
January 24, 2016 19:45
-
-
Save oelna/abe2344198c141c0208c to your computer and use it in GitHub Desktop.
Export Github issues from the command line
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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make this file executable before using:
chmod +x dump_github_issues.sh