Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vicainelli/github-labels-batch
A easy way to add a batch of labels to your GitHub repository
https://github.com/vicainelli/github-labels-batch
bun bun-js bunjs github-labels labels labels-generator
Last synced: 15 days ago
JSON representation
A easy way to add a batch of labels to your GitHub repository
- Host: GitHub
- URL: https://github.com/vicainelli/github-labels-batch
- Owner: vicainelli
- Created: 2024-02-01T11:14:31.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-01T11:27:42.000Z (11 months ago)
- Last Synced: 2024-10-31T03:06:09.555Z (2 months ago)
- Topics: bun, bun-js, bunjs, github-labels, labels, labels-generator
- Language: TypeScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitHub labels batch
## Getting Started
### Environment variables
First, you'll need a [GitHub token](https://github.com/settings/tokens) to access your repositories through an API.
Then, rename the `.env.example` file to `.env` and add your token to the `GH_TOKEN` variable.
You also have to fill the variables `GH_OWNER` and `GH_REPOSITORY` with the repository that you want to add.
### Adding labels
You can write the labels that you want to add on the `labels.json` file, following the structure:
```json
{
"name": "bug",
"color": "d73a4a",
"description": "Something isn't working"
}
```On the `/examples` directory you may find some label examples that I use on my projects, feel free to use them.
## Running the project
This project uses Bun, check the installation guide [here](https://bun.sh/docs/installation).
To install dependencies:
```bash
bun install
```To run:
```bash
bun run index.ts
```