Skip to content

Label all of your repositories within an organization with labels defined in labels.json

License

Notifications You must be signed in to change notification settings

displague/github-labeller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Repo Labeller

Label all of your repositories within an organization with labels defined in labels.json from the current directory.

This is a small tool to consistently label all repositories in a Github org with the specified labels. This takes advantage of the go-github library.

While Github labels can be set at the organization level, existing repositories are not updated to reflect those labels.

Install

GO111MODULE=off go get github.com/displague/github-labeller

Usage

First, make sure labels.json exists and has all of the labels you want to add to your repositories.

If repos is not present in the file, the labels provided will be added to all repositories in the organization.

{
  "repos": ["foo", "bar"],
  "labels": [{"name":"labelA", "color": "b0b0b0", "description": "Label A"}]
}

Then run github-labeller with a GITHUB_TOKEN set in the environment:

GITHUB_TOKEN=... github-labeller ORG

TODO

  • Add the labels to the Org (if permitted)?
  • Update existing labels?

About

Label all of your repositories within an organization with labels defined in labels.json

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages