GithubHelp home page GithubHelp logo

gh-make-labels's Introduction

Make labels for GitHub repo GitHub release CI Build Status Go Report Card

This command-line tool will update given repo's labels to match predefined labels list.

Check this repo labels as example which labels you'll have after running this tool using example config.

Installation

Download binary for your OS manually from releases or run this to install the latest version:

curl -sfL $(curl -s https://api.github.com/repos/powerman/gh-make-labels/releases/latest | grep -i /gh-make-labels-$(uname -s)-$(uname -m)\" | cut -d\" -f4) | sudo install /dev/stdin /usr/local/bin/gh-make-labels

Dependencies

You should have installed and configured hub tool (gh-make-labels will use hub's token to access GitHub API).

Usage

Create file gh-labels.yml with list of labels to create and their colors (take a look at provided example config) and run this tool on any repo where you've admin access.

$ gh-make-labels -h
Usage: gh-make-labels [flags] owner/repo
  -cleanup
        delete unknown labels
  -config path
        path to config file (default "gh-labels.yml")
  -log.level level
        log level (debug|info|warn|err) (default "info")

$ curl -sfL https://raw.githubusercontent.com/powerman/gh-make-labels/master/gh-labels.yml >gh-labels.yml
$ gh-make-labels -cleanup owner/repo
inf `update` label=bug color=DC143C old_color=d73a4a
inf `remove` label=duplicate
inf `update` label=enhancement color=008000 old_color=a2eeef
inf `remove` label=good first issue
inf `remove` label=help wanted
inf `remove` label=invalid
inf `update` label=question color=0000CD old_color=d876e3
inf `remove` label=wontfix
inf `create` label=BLOCKED color=5218FA
inf `create` label=TBD color=FFFFFF
inf `create` label=URGENT color=FFC0CB
inf `create` label=blocker color=5218FA
inf `create` label=chore color=FFD700
inf `create` label=doc color=FFD700
inf `create` label=feature color=008000
inf `create` label=optimization color=008000
inf `create` label=refactoring color=FFD700
inf `create` label=test color=FFD700
inf `create` label=vulnerability color=DC143C
inf `create` label=∈API color=90EE90
inf `create` label=∈UserStory color=90EE90
inf `create` label=∈architecture color=F0E68C
inf `create` label=∈framework color=F0E68C
inf `create` label=∈security color=F0E68C
inf `create` label=⌘dev color=8A2BE2
inf `create` label=⌘production color=8A2BE2
inf `create` label=⌘staging color=8A2BE2
inf `create` label=◷16h color=E6E6FA
inf `create` label=◷1h color=E6E6FA
inf `create` label=◷3h color=E6E6FA
inf `create` label=◷8h color=E6E6FA
inf `create` label=➊ color=E6E6FA
inf `create` label=➋ color=E6E6FA
inf `create` label=➌ color=E6E6FA
inf `create` label=➎ color=E6E6FA
inf `create` label=➑ color=E6E6FA
$

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.