Code Monkey home page Code Monkey logo

gh-labels's Introduction

github labels

This repo is used to easily sync and manage github labels based on a yml file.

Prerequisites

  • Create a Github personal access token with a scope of repo (full control of private repositories)
  • Have node/npm installed.

Installation

Ensure that your node bin directory is in your path.

npm install
npm link

Usage

The labels that will be created are in labels.yml. Any existing labels that are setup on the repos will be removed if they do not exist in labels.yml. The repos that will be processed exist in organization as defined by org in the script.

  • Run on a single repo:
    gh-labels -o <repo-owner> -t <gh-token> -r <repo-name>
  • Run on all repos owned by an owner: (Cannot grab private repos of a user).
    gh-labels -o <repo-owner> -t <gh-token>
  • Run on all repos owned by all owners listed:
    gh-labels --owners <repo-owner-1> <repo-owner-2> -t <gh-token>
  • Run the update script in dry-run mode
    gh-labels -o <repo-owner> -t <gh-token> -r <repo-name> --dry-run
  • Run on an enterprise github
    gh-labels -o <repo-owner> -t <gh-token> -r <repo-name> -e "https://<company github url>"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.