update `user/repos` api description (#16503)

Currently states 

> List the repos that the authenticated user owns or has access to

but the endpoint does not list all repos a user has access to, only the ones a user owns

(Also verified and discussed in Discord)

Fixes #16502
tokarchuk/v1.17
Patrick Schratz 3 years ago committed by GitHub
parent 28f6f7bb03
commit ef395286bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      routers/api/v1/user/repo.go
  2. 2
      templates/swagger/v1_json.tmpl

@ -85,7 +85,7 @@ func ListUserRepos(ctx *context.APIContext) {
func ListMyRepos(ctx *context.APIContext) { func ListMyRepos(ctx *context.APIContext) {
// swagger:operation GET /user/repos user userCurrentListRepos // swagger:operation GET /user/repos user userCurrentListRepos
// --- // ---
// summary: List the repos that the authenticated user owns or has access to // summary: List the repos that the authenticated user owns
// produces: // produces:
// - application/json // - application/json
// parameters: // parameters:

@ -11052,7 +11052,7 @@
"tags": [ "tags": [
"user" "user"
], ],
"summary": "List the repos that the authenticated user owns or has access to", "summary": "List the repos that the authenticated user owns",
"operationId": "userCurrentListRepos", "operationId": "userCurrentListRepos",
"parameters": [ "parameters": [
{ {

Loading…
Cancel
Save