Skip to content

Application

Branch Guardian

Your very own branch guardian: A GitHub App to automatically protect the main branches in an organisation's repos.

This app uses web-hooks to listens for organization events to know when a repository has been created.

When a new repository is created, the app automatically creates protections for the main branch, and then notifies the account owner with an @mention in an issue within the repository that outlines the protections that were added.

How to use it

  1. Install the GitHub app on your organisation's account.
  2. Create a new repository in your organisation (make sure you initialise the new repository with a README.md!)
  3. The GitHub app will automatically create a branch protection rule for the main branch of each new repository under your organisation.
  4. The app will also automatically create an issue in the new repository, tagging the org admins and notifying them of the new branch protection rules.

Tips:

READMEs: Always initialise your new repo with a README.md file. Otherwise, there are no branches to protect!

Private repositories are only for Team plans: Make sure your organisation is on a team plan if you're creating a private repository. Otherwise, you won't be able to create a branch protection rule or assign reviewers for pull requests!

Simply, create a new repository...

Pricing and setup

Branch Guardian logo preview
Branch Guardian

Free

Protect your organisation's main branches for free!

For organizations only

Next: Confirm your installation location.

Branch Guardian is provided by a third-party and is governed by separate privacy policy and support documentation.