Giter VIP home page Giter VIP logo

github-label-sync's Introduction

github-label-sync

Node driven CLI for syncing labels between github repositories.

The Application will only

  • list your repositories
  • create new labels
  • update colors of existing labels

Installation

Install via git clone

$ git clone https://github.com/bmatz/github-label-sync.git
$ cd github-label-sync
$ npm install

Run the application

$ npm start

API Token

You will be prompted for a GitHub API token. You can enter your API token on the prompt, provide it via an CLI Argument or an environment variable (GITHUB_API_TOKEN). You can create a new GitHub API token here -> https://github.com/settings/tokens. Make sure to check 'repo - Full control of private repositories';

Linux

$ source GITHUB_API_TOKEN=123456789abcdef

Windows

set GITHUB_API_TOKEN=123456789abcdef

CLI Arguments

  • -o, --owner
    • filter affilated repositories
  • -s, --source
    • source repository
  • -d, --destination
    • destination repository
  • -c, --create
    • don't ask for create permission
  • -u, --update
    • don't ask for udpate permission
  • -t, --token
    • GitHub API token

Examples

Will list all according repositories which are affilated with the entered owner and your provided token.

$ npm start -- --owner bmatz --token 123456789abcdef

Automatically create and update labels in your destination repository based on your source repository. If all provided values are correct it will run without any further user interaction.

$ npm start -- --source bmatz/sourcerepo --destination bmatz/destinationrepo --create --update --token 123456789abcdef

Changelog

  • 1.1.0
    • Added CLI Arguments
    • It is now possible to select public repositories as source
  • 1.0.0
    • Basic Application

Screenshot

Screenshot

LICENSE

MIT license. See the LICENSE file for details.

github-label-sync's People

Contributors

ofkrown avatar

Stargazers

David Wippel avatar

Watchers

James Cloos avatar  avatar

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.