Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/usagizmo/github-issues-from-csv
https://github.com/usagizmo/github-issues-from-csv
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/usagizmo/github-issues-from-csv
- Owner: usagizmo
- License: mit
- Created: 2023-04-19T15:42:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-16T08:58:52.000Z (about 1 year ago)
- Last Synced: 2024-11-08T04:44:14.593Z (about 2 months ago)
- Language: JavaScript
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub issues from CSV
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.
https://user-images.githubusercontent.com/1271863/233315221-49b682f2-a212-4bf0-b85e-8cd303bff24b.mp4
## Prerequisites
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## Installation
1. Clone this repository to your local machine
2. Navigate to the cloned directory and run npm install to install the dependencies
3. Create a `.env` file from `.env.example` and set the following environment variables:```.env
TOKEN=YOUR_GITHUB_PERSONAL_ACCESS_TOKEN
OWNER=GITHUB_REPO_OWNER
```## Usage
To use the script:
1. Run `npm run add-issues` from the command line
2. Enter the name of the repository you want to add issues to
3. Choose the CSV file you want to use (either `sample-1.csv` or `sample-2.csv`)
4. The script will create issues in the repository based on the data in the CSV file## License
This project is licensed under the MIT License.