Skip to content
/ gic Public

GIC - GitHub Issue Creator (Parse CSV file and submits issues to GitHub)

Notifications You must be signed in to change notification settings

aeharake/gic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gic - GitHub Issue Creator

This is a very small project intended to facilitate issue creation on GitHub. Give it a CSV file and it will bulk create those issues.

Running Locally

Make sure you have Node.js installed.
https://nodejs.org/en/
Create a tab separated data.csv file (or modify the existing one) in the root directory, like the following:
title   assignees
Issue-1 username1
Issue-2 username1
Note that you can give it multiple assignees:
title   assignees
Issue-3 username1,username2,username3
Create an access token from GitHub
https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token
Get that token and put it in .env file in the root of your project:

In .env.example file, you'll also have to specify the remaining fields: OWNER, REPO and FILENAME. Don't forget to change .env.example to .env.

TOKEN=27f036e889dcbcc6f1475fff27f036e827f036e8
OWNER=aeharake
REPO=test
FILENAME=data.csv
The default delimiter (separator) is the tab character (\t).

You may change this from the code in createIssues.js

module.exports = (filename, data) => {
    fs.createReadStream(filename)
        .pipe(csv({separator:'\t'}))
        .on('data', async (row) => {
Now you have your project ready to run:
npm install
node index.js

Wait for a while, and you'll find your issues created in your specified repository.

About

GIC - GitHub Issue Creator (Parse CSV file and submits issues to GitHub)

Resources

Stars

Watchers

Forks

Packages

No packages published