Skip to content

Bash scripts to manage labels throughout a GitHub Organization.

Notifications You must be signed in to change notification settings

joe-at-startupmedia/githubOrgLabelMgr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Bash scripts to manage labels throughout a GitHub Organization.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages