A tool to migrate GitHub Repositories to Gitea including all issues
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
gitea-github-migrator/migrations/migratory.go

19 lines
459 B

package migrations
import "code.gitea.io/sdk/gitea"
// Migratory is the context for migrating things from GitHub to Gitea
type Migratory struct {
Client *gitea.Client
AuthUsername string
AuthPassword string
Private bool
NewOwnerID int
repository *gitea.Repository
// key: github milestone id | value: gitea milestone id
migratedMilestones map[int64]int64
// key: github label id | value: gitea label id
migratedLabels map[int64]int64
}