Git Product home page Git Product logo

jira-to-issues's Introduction

jira-to-issues

Repo for migrating Jiras to GitHub issues. This is specialized to use by the Apache Beam repo, but it can probably be adapted to other use cases relatively painlessly.

To use the tool:

  1. Clone this repo: git clone https://github.com/damccorm/jira-to-issues && cd jira-to-issues
  2. Update the target owner/repo in shared/github.ts to point to your organization/repo where you want the issues created.
  3. Update the jira link in shared/jira.ts to generate a csv containing issues you would like migrated. Right now, it is set to migrate open issues in the Beam Jira.
  4. Update the jira link in shared/github.ts to point to the Jira board you would like migrated and the GitHub repo you are migrating to. Right now it is set to Beam's Jira and Issues.
  5. In shared/translate.ts, update the list of valid labels you'd like migrated, the mapping of existing labels/components to label names, the mapping of jira handles to github handles, and the list of valid assignees (people who either have triage access or more to the repo or who have previously interacted with issues in the repo. All other handles will be silently ignored by GitHub as part of their spam prevention).
  6. Create a PAT with repo/issue access to your target repo. This can be done from https://github.com/settings/tokens/new
  7. Set your token in an environment variable GITHUB_TOKEN: export GITHUB_TOKEN=<PAT>
  8. Set your JIRA username in an environment variable JIRA_USERNAME: export JIRA_USERNAME=<username>
  9. Set your JIRA password in an environment variable JIRA_PASSWORD: export JIRA_PASSWORD=<password>
  10. Run npm install
  11. Run npm run exec

As long as you use the existing repo that you've cloned, the exec operation is resumable. So if you run into any issues during migration (e.g. your computer randomly restarts), you can resume the migration by running npm run exec again without risking duplicate issues.

jira-to-issues's People

Contributors

damccorm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

jira-to-issues's Issues

Feature Request: Enable GitHub authentication through GitHub Apps

First of all, this tool is amazing!

What

Integrate authentication with GitHub Apps, because it is more granular with the permissions than a PAT.
Also, PAT requires a user for this (which consumes a license), a GitHub App does not.

Why

GitHub App has more granular permissions than the PAT, and allows for repo-whitelisting, which can be be very helpful.
Also, as stated above, a PAT requires a user for this (which consumes a license), where GitHub App does not.

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.