Skip to content

Instantly share code, notes, and snippets.

@technicool
Created November 1, 2016 16:52
Show Gist options
  • Save technicool/c07b431f5ae7455d58fa208c99f834df to your computer and use it in GitHub Desktop.
Save technicool/c07b431f5ae7455d58fa208c99f834df to your computer and use it in GitHub Desktop.
Create a CSV with all Github issues from a repository
#!/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