First, you'll need a GitHub token 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.
You can write the labels that you want to add on the labels.json file, following the structure:
{
"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.
This project uses Bun, check the installation guide here.
To install dependencies:
bun installTo run:
bun run index.ts