Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 731 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 731 Bytes

gha

GitHub Access management tool for protected branches

You can use this tool to add someone to some branch as a merger.

Installation

Download gha cli tool for OSX and set as executable:

curl -L https://github.com/amirashad/gha/releases/download/v0.0.3/gha_darwin_amd64 -o /usr/local/bin/gha
chmod +x /usr/local/bin/gha

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 give someone merge access:

gha --org Some-Org --operation add --repos "repo1 repo2" --branches "develop master" --users "someuser1 someuser2"