Documentation ¶
Index ¶
- type Migratory
- func (m *Migratory) Issue(gi *github.Issue) (*gitea.Issue, error)
- func (m *Migratory) IssueComment(issue *gitea.Issue, gic *github.IssueComment) (*gitea.Comment, error)
- func (m *Migratory) Label(gl *github.Label) (*gitea.Label, error)
- func (m *Migratory) Milestone(gm *github.Milestone) (*gitea.Milestone, error)
- func (m *Migratory) Repository(gr *github.Repository) (*gitea.Repository, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Migratory ¶
type Migratory struct { Client *gitea.Client AuthUsername string AuthPassword string Private bool NewOwnerID int // contains filtered or unexported fields }
Migratory is the context for migrating things from GitHub to Gitea
func (*Migratory) IssueComment ¶
func (m *Migratory) IssueComment(issue *gitea.Issue, gic *github.IssueComment) (*gitea.Comment, error)
IssueComment migrates a GitHub IssueComment to a Gitea Comment
func (*Migratory) Milestone ¶
Milestone migrates a GitHub Milesteon to a Gitea Milestone and caches its id
func (*Migratory) Repository ¶
func (m *Migratory) Repository(gr *github.Repository) (*gitea.Repository, error)
Repository migrates a GitHub Repository to a Gitea Repository without migrating issues etc.
Click to show internal directories.
Click to hide internal directories.