Skip to content

Instantly share code, notes, and snippets.

@oelna
Created January 24, 2016 19:45
Show Gist options
  • Save oelna/abe2344198c141c0208c to your computer and use it in GitHub Desktop.
Save oelna/abe2344198c141c0208c to your computer and use it in GitHub Desktop.
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
Copy link
Author

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