From 13bc82009c2def4e729f11340e74a14d6c6b32e8 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Fri, 31 Jan 2020 16:49:04 +0100 Subject: API endpoint for repo transfer (#9947) * squash * optimize * fail before make any changes * fix-header --- modules/structs/repo.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/structs') diff --git a/modules/structs/repo.go b/modules/structs/repo.go index f148854b55..04cc594f22 100644 --- a/modules/structs/repo.go +++ b/modules/structs/repo.go @@ -158,6 +158,15 @@ type EditRepoOption struct { Archived *bool `json:"archived,omitempty"` } +// TransferRepoOption options when transfer a repository's ownership +// swagger:model +type TransferRepoOption struct { + // required: true + NewOwner string `json:"new_owner"` + // ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories. + TeamIDs *[]int64 `json:"team_ids"` +} + // GitServiceType represents a git service type GitServiceType int -- cgit v1.2.3