Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 1.29 KB

README.md

File metadata and controls

41 lines (33 loc) · 1.29 KB

GitHub Organization Label Manager

Joseph Persie

Install Required NPM Dependencies

yarn install

Install GithHub CLI

Installation

Acquire Access Token

You'll also need a GitHub access token ready so that the the tool will have access to your repositories. You can generate an access token here, be sure to allow the "repo" scope.

Generate The Token File

Generate the GitHub token configutation file in config/.env.token.

./golm -a [github_token]

Generate The Label And Repo Files

Generate config/labels.json and config/repos.config files.

./golm -g [organization] [source_repo]
  • Organization: The organization of the Source Repository.
  • Source Repository: The repository to fetch all labels from and distribute throughout the organization.

Distribute The Organization Labels Throughout

This will add labels to each repository through the organization based on each repository listed in the generated config/repos.config file.

./golm -s [organization]

Reauthenitcate Without Token Specification

Assuming the config/.env.token file is present it will use this token to reuathenticate to GitHub using the GitHub CLI.

./golm -r