Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Import and export GitHub issues via CSV

License

NotificationsYou must be signed in to change notification settings

ssinhaleite/github-csv-tools

 
 

Repository files navigation

GitHub CSV Tools banner

Import and export GitHub issues via CSV

BuildReleasenpm latest versionnpm latest version

Usage

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

npm install -g github-csv-tools

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 thetest folder for example input formats.

githubCsvTools myFile.csv

To Export Issues

githubCsvTools
OptionDefaultNotes
-f, --exportFileNameYYYY-MM-DD-hh-mm-ss-issues.csvThe name of the CSV you'd like to export to.
-a, --exportAttributesnumber, title, labels, state, assignees, milestone, comments, created_at, updated_at, closed_at, bodyComma-separated list of attributes (columns) in the export**.
-c, --exportCommentsn/aInclude comments in the export. If using in combination with--exportAttributes,id must be included.
-e, --exportAlln/aExport all possible values from the GitHub API. If not included, a subset of attributes (see--exportAttributes above) that are known to be compatible with GitHubimport will be included in the export.

** List of all possible options forexportAttributes includes every option in theGitHub API Export. Values in child objects can be referenced using a "dot" - for example, a user'savatar_url can be accessed viauser.avatar_url.

Tokens

For all actions, the tool will ask you to input a GitHub token. To obtain this token:

  1. Go tohttps://github.com/settings/tokens
  2. Click "Generate New Token"
  3. Check onrepo
  4. Copy/paste the token provided when the tool asks for it.

Other Options

OptionNotes
-V, --versionOutput the version number
-g, --github_enterpriseYour GitHub Enterprise URL.https://your-internal-githubenterprise.com/api/v3
(Reminder: do not forget the/api/v3 at the end)
-t, --tokenThe GitHub token.https://github.com/settings/tokens
-o, --organizationThe User or Organization slug that the repo lives under.
Example: For/myOrg/my-repo, this value would bemyOrg.
-r, --repositoryThe repository name (slug).
Example: For/myOrg/my-repo, this value would bemy-repo.
--csvDelimiterThe CSV delimiter character (defaults to ',')
-v, --verboseInclude additional logging information.
-h, --helpSee all the options and help.

Development

  1. Clone the repo.
  2. Browse to repo, then runnpm install -g

Changelog

SeeCHANGELOG.md

Hosted versionhosted shield

This software can be used without download/install by going torepoio.com.

Thanks

About

Import and export GitHub issues via CSV

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript100.0%

[8]ページ先頭

©2009-2025 Movatter.jp