I got tired of manually updating default settings, adding labels, and rotating old tags on each repository. GitHub, specifically, allows you to set default settings at the organization level for new repositories but it is not possible to apply those to previously created repositories automatically.
The purpose of this script is to set a default set of labels to an specified repository.
Made with Ruby 💎 for learning purposes.
-
Create a GitHub access token.
-
Create the dotenv (
.env
) file using the example.env.example
file and update it accordingly. -
Change your settings in the
config.yml
file. -
Install the script dependencies using
bundle
:bundle install
Run the script on your terminal:
./gru.rb help # Show all available commands
./gru.rb help labels # Show help for a command
./gru.rb labels add
./gru.rb labels remove
./gru.rb repo update
./gru.rb repo update-all
./gru.rb tags list
./gru.rb tags remove-stale