Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cirocfc/yet-another-github-branch-protection-tool

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cirocfc/yet-another-github-branch-protection-tool

Just a simple helper to protect branches using restrictions

  • 0.0.1-alpha.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

npm Commitizen friendly

yet-another-github-branch-protection-tool

Just a simple helper to protect Github branches using Octokit and restrictions.

Installation

yarn add @cirocfc/yet-another-github-branch-protection-tool

Create a config directory and place in it both your defaults.yaml and projects.yaml configuration.

Usage

In order to use this package, you must provide a GITHUB_TOKEN environment variable with a Personal access tokens. If you don't have one, go ahead and create it.

After setting the GITHUB_TOKEN value, you can run the commands:

  • To lock a branch:

    yarn ya-protect-branch --project=<project-name-from-projects.yaml> --locked
    
  • To unlock a branch:

    yarn ya-protect-branch --project=<project-name-from-projects.yaml>
    

That's it. Enjoy!

FAQs

Package last updated on 11 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc