DEV Community

Cover image for Export or Import Issues from GitHub
Gavin Rehkemper
Gavin Rehkemper

Posted on

Export or Import Issues from GitHub

GitHub CSV Tools now supports exporting issues!

  • Choose what columns you want in the exported CSV with --exportAttributes.
  • Export all the comments per issue with --exportComments

Importing issues via a CSV is also possible, just pass a CSV file like githubCsvTools myFile.csv.

To get started, just run npm install -g github-csv-tools and then export with the command githubCsvTools.

Enjoy!

GitHub logo gavinr / github-csv-tools

Import and export GitHub issues via CSV

GitHub CSV Tools banner

Import and export GitHub issues via CSV

Build Release npm latest version npm latest version

Usage

Prerequisite: Install Node.js, then run this to install:

npm install -g github-csv-tools
Enter fullscreen mode Exit fullscreen mode

After install, githubCsvTools --help for info on how to use, or see below.

Instructions for exporting or importing:

To Import Issues

Currently imports title, body, labels, status (closed or open) and milestones. See the test folder for example input formats.

githubCsvTools myFile.csv
Enter fullscreen mode Exit fullscreen mode

To Export Issues

githubCsvTools
Enter fullscreen mode Exit fullscreen mode































Option Default Notes
-f, --exportFileName YYYY-MM-DD-hh-mm-ss-issues.csv The name of the CSV you'd like to export to.
-a, --exportAttributes number, title, labels, state, assignees, milestone, comments, created_at, updated_at, closed_at, body Comma-separated list of attributes (columns) in the export**.
-c, --exportComments n/a Include comments in the export. If using in combination with --exportAttributes, id must be included.
-e, --exportAll n/a Export all possible values from the GitHub API. If not included, a subset of attributes (see --exportAttributes above) that are known to be compatible





Top comments (1)

Collapse
 
hhkaos profile image
Raul Jimenez Ortega • Edited

Great Gavin!! you saved my day :D. Repo starred!