diff --git a/api/scm/sync.go b/api/scm/sync.go index b15dcc92c..23723152f 100644 --- a/api/scm/sync.go +++ b/api/scm/sync.go @@ -42,6 +42,16 @@ import ( // description: Successfully synchronized repo // schema: // "$ref": "#/definitions/Repo" +// '204': +// description: Successful request resulting in no change +// '301': +// description: Repo has moved permanently +// schema: +// "$ref": "#/definitions/Error" +// '403': +// description: User has been forbidden access to repository +// schema: +// "$ref": "#/definitions/Error" // '500': // description: Unable to synchronize repo // schema: diff --git a/api/scm/sync_org.go b/api/scm/sync_org.go index b4bd75684..fb0c425f3 100644 --- a/api/scm/sync_org.go +++ b/api/scm/sync_org.go @@ -38,6 +38,16 @@ import ( // type: array // items: // "$ref": "#/definitions/Repo" +// '204': +// description: Successful request resulting in no change +// '301': +// description: One repo in the org has moved permanently +// schema: +// "$ref": "#/definitions/Error" +// '403': +// description: User has been forbidden access to at least one repository in org +// schema: +// "$ref": "#/definitions/Error" // '500': // description: Unable to synchronize org repositories // schema: