Files
dotfiles/dot_config/nushell/nu_scripts/sourced/github/branch-protections
Cian Hughes 896af887ca Changed . token to _dot
This change allows the dotfiles to work with chezmoi (e.g: on windows)
and improves grepability with neovim/telescope
2024-11-07 13:52:17 +00:00
..
2024-11-07 13:52:17 +00:00
2024-11-07 13:52:17 +00:00
2024-11-07 13:52:17 +00:00

Branch Protections

Definition

Do you have hundreds or thousands of GitHub repositories in your organization? Are you tired of manually managing their branch protection rules? Don't! Let nushell do it for you!

Setup

  1. Replace placeholder data in .nu script with your own (or remove the appropriate fields if you don't need to i.e push to repo from action)
  2. Create a repo in your organization account to store the github action
  3. Push both the attached script and the github action to the repo

Possible future improvements

  • Instead of cron run the script on repository creation event (once org level actions become a thing in GitHub)