diff --git a/modules/structs/repo.go b/modules/structs/repo.go index 90ac1688e4..47973a5f6a 100644 --- a/modules/structs/repo.go +++ b/modules/structs/repo.go @@ -223,7 +223,7 @@ type EditRepoOption struct { DefaultAllowMaintainerEdit *bool `json:"default_allow_maintainer_edit,omitempty"` // set to `true` to archive this repository. Archived *bool `json:"archived,omitempty"` - // set a string like `8h30m0s` to set the mirror interval time + // set to a string like `8h30m0s` to set the mirror interval time MirrorInterval *string `json:"mirror_interval,omitempty"` // enable prune - remove obsolete remote-tracking references when mirroring EnablePrune *bool `json:"enable_prune,omitempty"` diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 7cd9d9355d..6ed21e0451 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -24799,7 +24799,7 @@ "$ref": "#/definitions/InternalTracker" }, "mirror_interval": { - "description": "set a string like `8h30m0s` to set the mirror interval time", + "description": "set to a string like `8h30m0s` to set the mirror interval time", "type": "string", "x-go-name": "MirrorInterval" },