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/utils.go

24 lines
523 B

package migrations
import (
"time"
"code.gitea.io/sdk/gitea"
)
var DemoMigratory = &Migratory{
AuthUsername: "demo",
AuthPassword: "demo",
Client: gitea.NewClient("http://gitea:3000", "8bffa364d5a4b2f18421426da0baf6ccddd16d6b"),
repository: &gitea.Repository{
Name: "demo",
Owner: &gitea.User{
UserName: "demo",
},
},
NewOwnerID: 1,
migratedMilestones: make(map[int64]int64),
migratedLabels: make(map[int64]int64),
}
var demoTime = time.Date(2018, 01, 01, 01, 01, 01, 01, time.UTC)