You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

uploader.go 649 B

123456789101112131415161718
  1. // Copyright 2019 The Gitea Authors. All rights reserved.
  2. // Copyright 2018 Jonas Franz. All rights reserved.
  3. // Use of this source code is governed by a MIT-style
  4. // license that can be found in the LICENSE file.
  5. package base
  6. // Uploader uploads all the informations of one repository
  7. type Uploader interface {
  8. CreateRepo(repo *Repository, includeWiki bool) error
  9. CreateMilestones(milestones ...*Milestone) error
  10. CreateReleases(releases ...*Release) error
  11. CreateLabels(labels ...*Label) error
  12. CreateIssues(issues ...*Issue) error
  13. CreateComments(comments ...*Comment) error
  14. CreatePullRequests(prs ...*PullRequest) error
  15. Rollback() error
  16. }