File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 228
228
}
229
229
}
230
230
},
231
+ "/repos/{username}/{reponame}/mirror-sync" : {
232
+ "post" : {
233
+ "produces" : [
234
+ " application/json"
235
+ ],
236
+ "operationId" : " repoMirrorSync" ,
237
+ "responses" : {
238
+ "200" : {
239
+ "$ref" : " #/responses/empty"
240
+ },
241
+ "403" : {
242
+ "$ref" : " #/responses/forbidden"
243
+ }
244
+ }
245
+ }
246
+ },
231
247
"/repos/{username}/{reponame}/subscription" : {
232
248
"get" : {
233
249
"operationId" : " userCurrentCheckSubscription" ,
Original file line number Diff line number Diff line change @@ -337,6 +337,15 @@ func Delete(ctx *context.APIContext) {
337
337
338
338
// MirrorSync adds a mirrored repository to the sync queue
339
339
func MirrorSync (ctx * context.APIContext ) {
340
+ // swagger:route POST /repos/{username}/{reponame}/mirror-sync repoMirrorSync
341
+ //
342
+ // Produces:
343
+ // - application/json
344
+ //
345
+ // Responses:
346
+ // 200: empty
347
+ // 403: forbidden
348
+
340
349
repo := ctx .Repo .Repository
341
350
342
351
if ! ctx .Repo .IsWriter () {
You can’t perform that action at this time.
0 commit comments