/github-issues-export

A script written in Node to export Github issues into a csv file using their Graphql API.

Primary LanguageJavaScript

Github Issue Exporter

A script written in Node to export Github issues into a csv file using their Graphql API.

Getting Started

  1. Create a Personal Access Token on Github (required to access the api)
  2. Clone this repo
  3. Modify your graphql query in index.js
  4. Run the script

Running the Script

node index.js --token YOUR_TOKEN --owner REPO_OWNER --repo REPO_NAME

Script Options

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

Modifying the Query

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.