Skip to content

homeles/branch-protection-report

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Branch Protection Report

This is a command line tool that generates a report on the branch protection rules for all repositories in a GitHub organization.

Installation

  1. Clone this repository:
    git clone https://github.com/homeles/gh-branch-protection-report.git
  2. Navigate to the project directory:
    cd gh-branch-protection-report
  3. Install the dependencies:
    npm install

Usage

You can run the tool with the --orgName and --token command line arguments:

node index.js --token <githubToken> --orgName <orgName>

Or you can set the GITHUB_TOKEN and ORG_NAME environment variables and run the tool without any arguments:

export GITHUB_TOKEN=<githubToken>
export ORG_NAME=<orgName>
node index.js

Replace <githubToken> with your GitHub token and <orgName> with the name of the GitHub organization.

License

MIT

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published