@@ -48,15 +48,17 @@ type ExternalWiki struct {
4848
4949// Repository represents a repository 
5050type  Repository  struct  {
51- 	ID             int64        `json:"id"` 
52- 	Owner          * User        `json:"owner"` 
53- 	Name           string       `json:"name"` 
54- 	FullName       string       `json:"full_name"` 
55- 	Description    string       `json:"description"` 
56- 	Empty          bool         `json:"empty"` 
57- 	Private        bool         `json:"private"` 
58- 	Fork           bool         `json:"fork"` 
59- 	Template       bool         `json:"template"` 
51+ 	ID  int64  `json:"id"` 
52+ 	// user or organization owning the repository 
53+ 	Owner        * User   `json:"owner"` 
54+ 	Name         string  `json:"name"` 
55+ 	FullName     string  `json:"full_name"` 
56+ 	Description  string  `json:"description"` 
57+ 	Empty        bool    `json:"empty"` 
58+ 	Private      bool    `json:"private"` 
59+ 	Fork         bool    `json:"fork"` 
60+ 	Template     bool    `json:"template"` 
61+ 	// the original repository if the repository in the parameter is a fork; else empty 
6062	Parent         * Repository  `json:"parent,omitempty"` 
6163	Mirror         bool         `json:"mirror"` 
6264	Size           int          `json:"size"` 
@@ -228,12 +230,10 @@ type EditRepoOption struct {
228230// GenerateRepoOption options when creating repository using a template 
229231// swagger:model 
230232type  GenerateRepoOption  struct  {
231- 	// The organization  or person  who will own the new  repository 
233+ 	// username of the user  or organization  who will own the repository 
232234	// 
233235	// required: true 
234236	Owner  string  `json:"owner"` 
235- 	// Name of the repository to create 
236- 	// 
237237	// required: true 
238238	// unique: true 
239239	Name  string  `json:"name" binding:"Required;AlphaDashDot;MaxSize(100)"` 
@@ -293,6 +293,7 @@ type UpdateBranchRepoOption struct {
293293// TransferRepoOption options when transfer a repository's ownership 
294294// swagger:model 
295295type  TransferRepoOption  struct  {
296+ 	// username of the user or organization who will own the repository 
296297	// required: true 
297298	NewOwner  string  `json:"new_owner"` 
298299	// ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories. 
@@ -354,7 +355,7 @@ type MigrateRepoOptions struct {
354355	CloneAddr  string  `json:"clone_addr" binding:"Required"` 
355356	// deprecated (only for backwards compatibility) 
356357	RepoOwnerID  int64  `json:"uid"` 
357- 	// Name  of User  or Organisation  who will own Repo  after migration 
358+ 	// username  of the user  or organization  who will own the repository  after migration 
358359	RepoOwner  string  `json:"repo_owner"` 
359360	// required: true 
360361	RepoName  string  `json:"repo_name" binding:"Required;AlphaDashDot;MaxSize(100)"` 
0 commit comments