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.
 
 
 

20 lines
461 B

  1. package migrations
  2. import "code.gitea.io/sdk/gitea"
  3. // Migratory is the context for migrating things from GitHub to Gitea
  4. type Migratory struct {
  5. Client *gitea.Client
  6. AuthUsername string
  7. AuthPassword string
  8. Private bool
  9. NewOwnerID int64
  10. repository *gitea.Repository
  11. // key: github milestone id | value: gitea milestone id
  12. migratedMilestones map[int64]int64
  13. // key: github label id | value: gitea label id
  14. migratedLabels map[int64]int64
  15. }