diff options
author | 6543 <6543@obermui.de> | 2020-01-31 16:49:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-31 15:49:04 +0000 |
commit | 13bc82009c2def4e729f11340e74a14d6c6b32e8 (patch) | |
tree | b545d0af8fdebbddb79fee55b8e643c9f392ff49 /modules/structs | |
parent | d816f7018b0726f868fa0cddf02ffae184601395 (diff) | |
download | gitea-13bc82009c2def4e729f11340e74a14d6c6b32e8.tar.gz gitea-13bc82009c2def4e729f11340e74a14d6c6b32e8.zip |
API endpoint for repo transfer (#9947)
* squash
* optimize
* fail before make any changes
* fix-header
Diffstat (limited to 'modules/structs')
-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 |