Skip to content

A easy way to add a batch of labels to your GitHub repository

Notifications You must be signed in to change notification settings

vicainelli/github-labels-batch

Repository files navigation

GitHub labels batch

Getting Started

Environment variables

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.

Adding labels

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.

Running the project

This project uses Bun, check the installation guide here.

To install dependencies:

bun install

To run:

bun run index.ts

About

A easy way to add a batch of labels to your GitHub repository

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published