Skip to content
This repository has been archived by the owner on Jul 27, 2020. It is now read-only.

Commit

Permalink
feat: repos/list-for-authenticated-user, deprecates repos/list
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Mar 10, 2020
1 parent a21e0a9 commit 0362c57
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion openapi/api.github.com/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@
"get": { "$ref": "operations/users/list-public-emails.json" }
},
"/user/repos": {
"get": { "$ref": "operations/repos/list.json" },
"get": { "$ref": "operations/repos/list-for-authenticated-user.json" },
"post": { "$ref": "operations/repos/create-for-authenticated-user.json" }
},
"/user/repository_invitations": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"summary": "List your repositories",
"summary": "List repositories for the authenticated user",
"description": "Lists repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.\n\nThe authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.",
"operationId": "repos/list",
"operationId": "repos/list-for-authenticated-user",
"tags": ["repos"],
"externalDocs": {
"description": "API method documentation",
"url": "https://developer.github.com/v3/repos/#list-your-repositories"
"url": "https://developer.github.com/v3/repos/#list-repositories-for-the-authenticated-user"
},
"parameters": [
{
Expand Down Expand Up @@ -86,14 +86,22 @@
"lang": "Shell",
"source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/user/repos"
},
{ "lang": "JS", "source": "octokit.repos.list()" },
{ "lang": "Ruby", "source": "octokit.list()" }
{ "lang": "JS", "source": "octokit.repos.listForAuthenticatedUser()" },
{ "lang": "Ruby", "source": "octokit.for_authenticated_user()" }
],
"x-github": {
"legacy": false,
"enabledForApps": false,
"githubCloudOnly": false,
"previews": []
},
"x-changes": []
"x-changes": [
{
"type": "operation",
"date": "2020-03-04",
"note": "\"repos/list\" operation ID is now \"repos/list-for-authenticated-user\"",
"before": { "operationId": "repos/list" },
"after": { "operationId": "repos/list-for-authenticated-user" }
}
]
}

0 comments on commit 0362c57

Please sign in to comment.