Giter Club home page Giter Club logo

github-issue-mover's Introduction

GitHub Issue Mover

This is a small command-line tool that can move GitHub issues.

It needs a Personal Access Token from GitHub, which can be created here. The token (probably) needs Full control of private repositories (it might be enough with Access public repositories, depending on the repository).

Comments will be copied, but labels, milestones or assignees will not.

Examples

$ github-issue-mover --from=https://github.com/rolfbjarne/testApp/issues/10 --to=rolfbjarne/testApp --token=<TOKEN>
✅ Fetching repository info...
Authenticated as: Rolf Bjarne Kvinge (rolfbjarne)
    Rate limit: 5000
    Remaining: 4847
    Reset date: 4/4/2019 9:59:08 AM +00:00
✅ Fetching issue #10 from rolfbjarne/testApp...
✅ Retrieving 1 comments...
✅ Creating new issue in rolfbjarne/testApp...
   Copying 1 comment(s)...
✅   Copying comment #1/1...
✅ Copied 1 comment(s) successfully
✅ Adding a comment in the original issue pointing to the new issue...
✅ Closing the original issue...
✅ Completed successfully! New issue: https://github.com/rolfbjarne/TestApp/issues/11

There's also a script whose arguments are slightly faster to type (just pass the source url and the target org/repo combo), and which reads the token from ~/.github-status-pat:

$ ./move-github-issue https://github.com/rolfbjarne/testApp/issues/10 rolfbjarne/testApp
✅ Fetching repository info...
Authenticated as: Rolf Bjarne Kvinge (rolfbjarne)
    Rate limit: 5000
    Remaining: 4847
    Reset date: 4/4/2019 9:59:08 AM +00:00
✅ Fetching issue #10 from rolfbjarne/testApp...
✅ Retrieving 1 comments...
✅ Creating new issue in rolfbjarne/testApp...
   Copying 1 comment(s)...
✅   Copying comment #1/1...
✅ Copied 1 comment(s) successfully
✅ Adding a comment in the original issue pointing to the new issue...
✅ Closing the original issue...
✅ Completed successfully! New issue: https://github.com/rolfbjarne/TestApp/issues/11

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.