Giter Club home page Giter Club logo

takolabel's Introduction

takolabel

takolabel is a CLI tool for manipulating GitHub Labels across multiple repositories.

Installation

macOS

$ brew install tnagatomi/tap/takolabel

Other platforms

Download packaged binaries from Releases page in this repository.

Usage

Set environment variables below (via export command etc.).

  • TAKOLABEL_TOKEN (required)
    • GitHub Personal access token. A token with repo scope is needed if it will be run on a private repository. public_repo scope will suffice if it's a public repository.
  • TAKOLABEL_HOST (optional)
    • Set this variable to the host URL (e.g. https://ghe.example.com/) if you want to work with repositories hosted on GitHub Enterprise Server. Manipulations will take place in github.com repositories if you didn't set this variable.

--dry-run for all operations are supported.

Create Labels

$ takolabel create

Create labels to the repositories specified in the YAML file.

Write labels settings in takolabel_create.yml and put in the same directory as the one where you run the command.

e.g.

repositories:
  - some-owner/some-owner-repo-1
  - some-owner/some-owner-repo-2
  - another-owner/another-owner-repo-1
labels:
  - name: Label 1
    description: This is the label one 
    color: ff0000
  - name: Label 2
    description: This is the label two
    color: 00ff00
  - name: Label 3
    description: This is the label three
    color: 0000ff

Delete Labels

$ takolabel delete

Delete labels in the repositories specified in the YAML file.

Write labels settings in takolabel_delete.yml and put in the same directory as the one where you run the command.

e.g.

repositories:
  - some-owner/some-owner-repo-1
  - some-owner/some-owner-repo-2
  - another-owner/another-owner-repo-1
labels:
  - Label 1
  - Label 2
  - Label 3

Sync Labels

$ takolabel sync

Sync labels in the repositories to those of specified in the YAML file.

Write labels settings in takolabel_sync.yml and put in the same directory as the one where you run the command.

e.g.

repositories:
  - some-owner/some-owner-repo-1
  - some-owner/some-owner-repo-2
  - another-owner/another-owner-repo-1
labels:
  - name: Label 1
    description: This is the label one
    color: ff0000
  - name: Label 2
    description: This is the label two
    color: 00ff00
  - name: Label 3
    description: This is the label three
    color: 0000ff

Empty Labels

$ takolabel empty

Delete all the labels in the repositories specified in the YAML file.

Write repositories settings in takolabel_empty.yml and put in the same directory as the one where you run the command.

e.g.

repositories:
  - some-owner/some-owner-repo-1
  - some-owner/some-owner-repo-2
  - another-owner/another-owner-repo-1

takolabel's People

Contributors

tnagatomi avatar dependabot[bot] avatar

Stargazers

Johmaru avatar catnose avatar hourai avatar akht avatar Genki Uchimura avatar Tomohisa Oda avatar zbv avatar Futoshi Endo avatar Sam Gaw avatar Ken’ichiro Oyama avatar

Watchers

James Cloos avatar  avatar akht avatar

Forkers

isgasho

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.