This is a Node.js script that allows you to add issues to a GitHub repository from a CSV file. It uses the csv-parser library to read the CSV file and the octokit library to interact with the GitHub API.
demo.mp4
Before running the script, you need to have:
- A GitHub account
- A personal access token with the repo scope
- Node.js installed on your machine
- Clone this repository to your local machine
- Navigate to the cloned directory and run npm install to install the dependencies
- Create a
.env
file from.env.example
and set the following environment variables:
TOKEN=YOUR_GITHUB_PERSONAL_ACCESS_TOKEN
OWNER=GITHUB_REPO_OWNER
To use the script:
- Run
npm run add-issues
from the command line - Enter the name of the repository you want to add issues to
- Choose the CSV file you want to use (either
sample-1.csv
orsample-2.csv
) - The script will create issues in the repository based on the data in the CSV file
This project is licensed under the MIT License.