gru â GitHub Repository Updater Tool
đ Summary
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.
âī¸ Setup
-
Create a GitHub access token.
-
Create the dotenv (
.env) file using the example.env.examplefile and update it accordingly. -
Change your settings in the
config.ymlfile. -
Install the script dependencies using
bundle:
đ Run it
Run the script on your terminal:
âšī¸ Help
./gru.rb help # Show all available commands ./gru.rb help labels # Show help for a command
âĄī¸ Update labels
./gru.rb labels add ./gru.rb labels remove
âĄī¸ Update repo settings
./gru.rb repo update ./gru.rb repo update-all
âĄī¸ Remove old tags
./gru.rb tags list ./gru.rb tags remove-stale