github-labeller

command module
v0.0.0-...-be0b11f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

README

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?

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL