A script written in Node to export Github issues into a csv file using their Graphql API.
- Create a Personal Access Token on Github (required to access the api)
- Clone this repo
- Modify your graphql query in
index.js
- Run the script
node index.js --token YOUR_TOKEN --owner REPO_OWNER --repo REPO_NAME
Usage: node index.js [options]
Options:
--token [value] Github OAuth token
--owner [value] Github repo owner name
--repo [value] Github repo name
--filename [value] Export file name
You can modify the query by adjusting the query
string contained in the index.js
file. Without any modifications, the script will export the last 100 open issues with their labels and comments.