We have a number of repositories that contain many issue labels, most of which are common to all of them. Rather than manage these labels manually, we define them in a repository called repo_man and automate their management with scripting. The repositories we handle in this way include:
- habitat-sh/builder
- habitat-sh/cloud-environments
- habitat-sh/core
- habitat-sh/core-plans
- habitat-sh/habitat
- habitat-sh/protocols
- habitat-sh/sentinel
If you’d like to make a change to one or more labels in one these repositories, follow these easy steps:
- Clone our forked repo_man repository: https://github.com/habitat-sh/repo_man
- Read through the README to get an understanding of how things work, then make your configuration changes accordingly.
- Submit those changes as a pull request.
Once your PR is approved and merged, you can apply its changes yourself. To do that:
-
Obtain a GitHub personal access token with at least the
repo:public_repopermission, then configure your~/.netrcas indicated in the repo_man README, using your access token as thepassword. Be sure to apply permissions of0600to that file. -
Ensure you’ve got recent versions of Ruby and Bundler installed. (I’ve personally run this with Ruby 2.3.1.)
-
In the root of the repository, run
bundle install. -
Run
repo_manusing theconfig.tomlfiles incore-plansandhab-core:bundle exec bin/repo_man -c hab-core/config.toml bundle exec bin/repo_man -c core-plans/config.toml
That ought to do it! Your changes should be verifiable immediately.