diff options
Diffstat (limited to 'modules/structs/repo.go')
-rw-r--r-- | modules/structs/repo.go | 9 |
1 files changed, 9 insertions, 0 deletions
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 |