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.
 
 
 

25 lines
523 B

  1. package migrations
  2. import (
  3. "time"
  4. "code.gitea.io/sdk/gitea"
  5. )
  6. var DemoMigratory = &Migratory{
  7. AuthUsername: "demo",
  8. AuthPassword: "demo",
  9. Client: gitea.NewClient("http://gitea:3000", "8bffa364d5a4b2f18421426da0baf6ccddd16d6b"),
  10. repository: &gitea.Repository{
  11. Name: "demo",
  12. Owner: &gitea.User{
  13. UserName: "demo",
  14. },
  15. },
  16. NewOwnerID: 1,
  17. migratedMilestones: make(map[int64]int64),
  18. migratedLabels: make(map[int64]int64),
  19. }
  20. var demoTime = time.Date(2018, 01, 01, 01, 01, 01, 01, time.UTC)