@@ -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+ // username of the 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"`
6163 Mirror bool `json:"mirror"`
6264 Size int `json:"size"`
@@ -228,11 +230,11 @@ 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
237+ // name of the repository to create
236238 //
237239 // required: true
238240 // unique: true
@@ -293,6 +295,7 @@ type UpdateBranchRepoOption struct {
293295// TransferRepoOption options when transfer a repository's ownership
294296// swagger:model
295297type TransferRepoOption struct {
298+ // username of the user or organization who will own the repository
296299 // required: true
297300 NewOwner string `json:"new_owner"`
298301 // ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.
@@ -354,8 +357,9 @@ type MigrateRepoOptions struct {
354357 CloneAddr string `json:"clone_addr" binding:"Required"`
355358 // deprecated (only for backwards compatibility)
356359 RepoOwnerID int64 `json:"uid"`
357- // Name of User or Organisation who will own Repo after migration
360+ // username of the user or organization who will own the repository after migration
358361 RepoOwner string `json:"repo_owner"`
362+ // name of the repo
359363 // required: true
360364 RepoName string `json:"repo_name" binding:"Required;AlphaDashDot;MaxSize(100)"`
361365
0 commit comments