aboutsummaryrefslogtreecommitdiffstats
path: root/modules/structs
diff options
context:
space:
mode:
authorqwerty287 <80460567+qwerty287@users.noreply.github.com>2021-12-24 05:26:52 +0100
committerGitHub <noreply@github.com>2021-12-23 23:26:52 -0500
commit7cc44491fae1e5f00616a5b8d8da2934a8a619f8 (patch)
tree076c8d2bb9d706ce77356378547bfeb4dc83a510 /modules/structs
parent5754080eb9b13e3446443bc7c17cd53d160dfdf2 (diff)
downloadgitea-7cc44491fae1e5f00616a5b8d8da2934a8a619f8.tar.gz
gitea-7cc44491fae1e5f00616a5b8d8da2934a8a619f8.zip
Add API to manage repo tranfers (#17963)
Diffstat (limited to 'modules/structs')
-rw-r--r--modules/structs/repo.go8
1 files changed, 8 insertions, 0 deletions
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"`
+}