Skip to content
/ ghp Public

GitHub repository branch protection manager

Notifications You must be signed in to change notification settings

amirashad/ghp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ghp

GitHub repository branch protection manager

You can use this tool to add or remove some protection to some repository's branch.

Installation

Download ghp cli tool for OSX and set as executable:

curl -L https://github.com/amirashad/ghp/releases/download/v0.0.1/ghp_darwin_amd64 -o /usr/local/bin/ghp
chmod +x /usr/local/bin/ghp

Setup

To create Github personal token please follow: https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line

Add to your environment path: GITHUB_TOKEN={token-created-with-github-ui}

Example

To add protection to repo's branch:

ghp --org Some-Org --operation add --repos "repo1 repo2" --branches "develop master" --protection "security/snyk - Dockerfile (...), security/snyk - build.gradle (...)"

About

GitHub repository branch protection manager

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages