Skip to content
migrate GitHub (incl. Enterprise) repositories with idempotent-like manner
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
config
domain
external
usecase
.envrc
.gitignore
README.md
go.mod
go.sum
main.go

README.md

migrate-gh-repo

The script to migrate repositories with above constraints:

  • labels and milestones are fully migrated to target repository
  • issues that refers source created on target repository

Run

# create config/default.cue; see Configuration section
go run ./

Configuration

  • Write your configuration to config/default.cue
  • The spec is config/spec.cue
  • refs. https://cuelang.org/

Caveats

  • all of assignees on source repository must have permission to triage issues on target repository
  • migration of ton of issues, labels, or milestones may cause excess of API rate limit
    • Currently only way to avoid it is update sleep duration by you
    • We have intention to resolve that issue on smart way but have no good idea; patches/suggestions are welcome
You can’t perform that action at this time.