Skip to content

Commit 8682d25

Browse files
committed
fine tune
1 parent 98e9ce6 commit 8682d25

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

modules/structs/repo.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,10 @@ type EditRepoOption struct {
226226
EnablePrune *bool `json:"enable_prune,omitempty"`
227227
}
228228

229-
// GenerateRepoOption options when creating repository using a template
229+
// GenerateRepoOption options when creating a repository using a template
230230
// swagger:model
231231
type GenerateRepoOption struct {
232-
// The organization's name or individual user's name who will own the new repository
232+
// the organization's name or individual user's name who will own the new repository
233233
//
234234
// required: true
235235
Owner string `json:"owner"`
@@ -351,9 +351,10 @@ func (gt GitServiceType) Title() string {
351351
type MigrateRepoOptions struct {
352352
// required: true
353353
CloneAddr string `json:"clone_addr" binding:"Required"`
354-
// deprecated (only for backwards compatibility)
355-
RepoOwnerID int64 `json:"uid"`
356-
RepoOwner string `json:"repo_owner"`
354+
// deprecated (only for backwards compatibility, use repo_owner instead)
355+
RepoOwnerID int64 `json:"uid"`
356+
// the organization's name or individual user's name who will own the migrated repository
357+
RepoOwner string `json:"repo_owner"`
357358
// required: true
358359
RepoName string `json:"repo_name" binding:"Required;AlphaDashDot;MaxSize(100)"`
359360

templates/swagger/v1_json.tmpl

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)