summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorPaul Barton <28630076+paulbarton90@users.noreply.github.com>2021-01-02 23:47:47 +0000
committerGitHub <noreply@github.com>2021-01-02 18:47:47 -0500
commit7576e37a65729363370d6672ff6e69e87b68ac5f (patch)
treec2e885826e6f744b88949c9451d6a206ff48abcd /templates
parent3abea9e9eb8cbe42d1ec0afa70b4941d4066130f (diff)
downloadgitea-7576e37a65729363370d6672ff6e69e87b68ac5f.tar.gz
gitea-7576e37a65729363370d6672ff6e69e87b68ac5f.zip
Add MirrorInterval to the API (#14163)
* Added MirrorInterval to the API * Remove MirrorInterval from CreateRepository * Removed Duplicate UpdateMirror Function * Updated Error Logging * Update Log Message for is not Mirror Co-authored-by: 6543 <6543@obermui.de> * Delete Debug Statement that snuck in Co-authored-by: zeripath <art27@cantab.net> * Add Check for If Interval is too small * Output to API Call * Add Error Object when time is Less than Min Interval * Frequency Error Message Co-authored-by: zeripath <art27@cantab.net> * Allow Zero Mirror Interval Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'templates')
-rw-r--r--templates/swagger/v1_json.tmpl17
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 5de056f3c7..81ccf4f725 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -13263,6 +13263,11 @@
"internal_tracker": {
"$ref": "#/definitions/InternalTracker"
},
+ "mirror_interval": {
+ "description": "set to a string like `8h30m0s` to set the mirror interval time",
+ "type": "string",
+ "x-go-name": "MirrorInterval"
+ },
"name": {
"description": "name of the repository",
"type": "string",
@@ -14248,6 +14253,10 @@
"type": "boolean",
"x-go-name": "Mirror"
},
+ "mirror_interval": {
+ "type": "string",
+ "x-go-name": "MirrorInterval"
+ },
"private": {
"type": "boolean",
"x-go-name": "Private"
@@ -14323,6 +14332,10 @@
"type": "boolean",
"x-go-name": "Mirror"
},
+ "mirror_interval": {
+ "type": "string",
+ "x-go-name": "MirrorInterval"
+ },
"private": {
"type": "boolean",
"x-go-name": "Private"
@@ -15307,6 +15320,10 @@
"type": "boolean",
"x-go-name": "Mirror"
},
+ "mirror_interval": {
+ "type": "string",
+ "x-go-name": "MirrorInterval"
+ },
"name": {
"type": "string",
"x-go-name": "Name"