GithubHelp home page GithubHelp logo

olmoser / copy-github-labels-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jvandemo/copy-github-labels-cli

0.0 2.0 0.0 132 KB

CLI tool to copy GitHub labels from one repository to another

License: MIT License

JavaScript 100.00%

copy-github-labels-cli's Introduction

Copy GitHub Labels CLI

CLI tool to copy GitHub labels from one repository to another.

Build Status

octocat

If you only want to copy GitHub labels in a script and don't need a CLI, please use copy-github-labels to avoid unnecessary dependencies.

Installation

$ npm install -g copy-github-labels-cli

Usage

$ copy-github-labels -t <token> <source-repo> <destination-repo>

Example

To copy all labels from angular/angular to jvandemo/test:

$ copy-github-labels -t e7ac7612021979b8884f6f11236c65e7723da8c1 angular/angular jvandemo/test

The token above is just an example token, not a real token. You should generate your own token.

The output shows whether or not the copy failed for each label individually:

copy-github-labels

FAQ

Where can I get a token?

Check out the GitHub guide: Creating an access token for command-line use.

I'm getting an error "Unknown label: failed (Bad credentials)"

This happens when your token is not valid.

I'm getting an error "Unknown label: failed (Validation Failed)"

This happens when GitHub refuses to copy the label because it is already present in the destination repository.

I'm getting an error "Unknown label: failed (Not Found)"

This happens when the destination repository cannot be found.

License

MIT

Change log

1.0.0

  • Released production version

0.2.0

  • Added error handling
  • Updated documentation

0.1.0

  • Initial version

copy-github-labels-cli's People

Contributors

jvandemo avatar

Watchers

 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.