yarn install
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 GitHub token configutation file in config/.env.token
.
./golm -a [github_token]
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.
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]
Assuming the config/.env.token
file is present it will use this token to reuathenticate to GitHub using the GitHub CLI.
./golm -r