https://github.com/joe-at-startupmedia/githuborglabelmgr
Bash scripts to manage labels throughout a GitHub Organization.
https://github.com/joe-at-startupmedia/githuborglabelmgr
github-labels github-organizations
Last synced: 11 months ago
JSON representation
Bash scripts to manage labels throughout a GitHub Organization.
- Host: GitHub
- URL: https://github.com/joe-at-startupmedia/githuborglabelmgr
- Owner: joe-at-startupmedia
- Created: 2017-07-28T15:23:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-06-21T22:48:52.000Z (over 4 years ago)
- Last Synced: 2025-02-02T08:43:49.683Z (about 1 year ago)
- Topics: github-labels, github-organizations
- Language: Shell
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## GitHub Organization Label Manager
#### Joseph Persie
### Install Required NPM Dependencies
```bash
yarn install
```
### Install GithHub CLI
[Installation](https://github.com/cli/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](https://github.com/settings/tokens), be sure to allow the `"repo"` scope.
### Generate The Token File
Generate the GitHub token configutation file in `config/.env.token`.
```bash
./golm -a [github_token]
```
### Generate The Label And Repo Files
Generate `config/labels.json` and `config/repos.config` files.
```bash
./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.
```bash
./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.
```bash
./golm -r
```