@@ -48,8 +48,7 @@ type ExternalWiki struct {
4848
4949// Repository represents a repository
5050type Repository struct {
51- ID int64 `json:"id"`
52- // owner of the repo
51+ ID int64 `json:"id"`
5352 Owner * User `json:"owner"`
5453 Name string `json:"name"`
5554 FullName string `json:"full_name"`
@@ -58,7 +57,7 @@ type Repository struct {
5857 Private bool `json:"private"`
5958 Fork bool `json:"fork"`
6059 Template bool `json:"template"`
61- // the original repository if the repository in the parameter is a fork; else empty
60+ // the original repository if this repository is a fork, otherwise null
6261 Parent * Repository `json:"parent,omitempty"`
6362 Mirror bool `json:"mirror"`
6463 Size int `json:"size"`
@@ -230,7 +229,7 @@ type EditRepoOption struct {
230229// GenerateRepoOption options when creating repository using a template
231230// swagger:model
232231type GenerateRepoOption struct {
233- // owner of the repo
232+ // The organization's name or individual user's name who will own the new repository
234233 //
235234 // required: true
236235 Owner string `json:"owner"`
@@ -293,7 +292,6 @@ type UpdateBranchRepoOption struct {
293292// TransferRepoOption options when transfer a repository's ownership
294293// swagger:model
295294type TransferRepoOption struct {
296- // new owner of the repo
297295 // required: true
298296 NewOwner string `json:"new_owner"`
299297 // ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.
@@ -354,9 +352,8 @@ type MigrateRepoOptions struct {
354352 // required: true
355353 CloneAddr string `json:"clone_addr" binding:"Required"`
356354 // deprecated (only for backwards compatibility)
357- RepoOwnerID int64 `json:"uid"`
358- // owner of the repo after migration
359- RepoOwner string `json:"repo_owner"`
355+ RepoOwnerID int64 `json:"uid"`
356+ RepoOwner string `json:"repo_owner"`
360357 // required: true
361358 RepoName string `json:"repo_name" binding:"Required;AlphaDashDot;MaxSize(100)"`
362359
0 commit comments