From 7cc44491fae1e5f00616a5b8d8da2934a8a619f8 Mon Sep 17 00:00:00 2001 From: qwerty287 <80460567+qwerty287@users.noreply.github.com> Date: Fri, 24 Dec 2021 05:26:52 +0100 Subject: Add API to manage repo tranfers (#17963) --- modules/structs/repo.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules/structs') diff --git a/modules/structs/repo.go b/modules/structs/repo.go index b1a3781d05..38d80db704 100644 --- a/modules/structs/repo.go +++ b/modules/structs/repo.go @@ -93,6 +93,7 @@ type Repository struct { AvatarURL string `json:"avatar_url"` Internal bool `json:"internal"` MirrorInterval string `json:"mirror_interval"` + RepoTransfer *RepoTransfer `json:"repo_transfer"` } // CreateRepoOption options when creating repository @@ -336,3 +337,10 @@ var ( CodebaseService, } ) + +// RepoTransfer represents a pending repo transfer +type RepoTransfer struct { + Doer *User `json:"doer"` + Recipient *User `json:"recipient"` + Teams []*Team `json:"teams"` +} -- cgit v1.2.3