2019-05-07 06:42:51 +05:30
|
|
|
// Copyright 2019 The Gitea Authors. All rights reserved.
|
|
|
|
// Copyright 2018 Jonas Franz. All rights reserved.
|
|
|
|
// Use of this source code is governed by a MIT-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package base
|
|
|
|
|
2019-06-29 19:08:22 +05:30
|
|
|
// Uploader uploads all the informations of one repository
|
2019-05-07 06:42:51 +05:30
|
|
|
type Uploader interface {
|
|
|
|
CreateRepo(repo *Repository, includeWiki bool) error
|
2019-06-29 19:08:22 +05:30
|
|
|
CreateMilestones(milestones ...*Milestone) error
|
|
|
|
CreateReleases(releases ...*Release) error
|
|
|
|
CreateLabels(labels ...*Label) error
|
|
|
|
CreateIssues(issues ...*Issue) error
|
|
|
|
CreateComments(comments ...*Comment) error
|
|
|
|
CreatePullRequests(prs ...*PullRequest) error
|
2019-05-07 06:42:51 +05:30
|
|
|
Rollback() error
|
|
|
|
}
|