Skip to content

AI21Labs/github-migration

Repository files navigation

Github Migration

Migrate Bitbucket repositories to Github

Prerequisites

  • Install nvm
brew install nvm

Getting Started

Install deps

source ./init.sh

Github Mobile

Create Access Tokens

Migrate a Bitbucket Repository

  • Run migration script
$ node migration.js --help
Usage: migration.js --ght [string] --bbt [string] --repo [string] --owner [string]

Options:
  --help     Show help                              [boolean]
  --version  Show version number                    [boolean]
  --ght      Github Personal Access Token (PAT)     [require]
  --bbt      BitBucket Personal Access Token (PAT)  [required]
  --repo     Repository to migrate                  [required]
  --owner    Github username                        [required]
  • For example:
node migration.js --bbt BB_TOKEN --ght GH_TOKEN --owner USER --repo REPO_NAME
  • Update Cloudbuild with the new github repository
  • Verify CI/CD for your module works
  • Delete your repository from bitbucket once it becomes obsolete

Contribute

  • Run validation by leveraging pre-commit as described here
    • Install pre-commit install --install-hooks -t pre-commit -t commit-msg
    • To run on-demand pre-commit run -a
  • Submit a pull-request

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published