Skip to content

Instantly share code, notes, and snippets.

View jethromayuk's full-sized avatar

Jethro May jethromayuk

View GitHub Profile
@jethromayuk
jethromayuk / bitbucket-to-github.rb
Created October 24, 2022 14:22 — forked from rbellamy/bitbucket-to-github.rb
Bulk import Bitbucket repos to Github
#!/usr/bin/env ruby
require 'fileutils'
# Originally -- Dave Deriso -- [email protected]
# Contributor -- G. Richard Bellamy -- [email protected]
# If you contribute, put your name here!
# To get your team ID:
# 1. Go to your GitHub profile, select 'Personal Access Tokens', and create an Access token
# 2. curl -H "Authorization: token <very-long-access-token>" https://api.github.com/orgs/<org-name>/teams
# 3. Find the team name, and grabulate the Team ID