Created
November 1, 2016 16:52
-
-
Save technicool/c07b431f5ae7455d58fa208c99f834df to your computer and use it in GitHub Desktop.
Create a CSV with all Github issues from a repository
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/sh | |
echo "Enter your username for Github: " | |
read username | |
echo "Which repository (Enter org and project) [google/googlemock]: " | |
read repo | |
repo="${repo:=google/googlemock}" | |
echo "id, state, title, body, user" > issues.csv | |
curl --silent -u $username https://api.github.com/repos/$repo/issues | \ | |
jq -r '.[] | [.id, .state, .title, .body, .user.login ] | @csv' | | |
>> issues.csv | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment