This repository has been archived by the owner on Jul 27, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add deprecated find-user-installation route
- Loading branch information
Showing
12 changed files
with
1,011 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{ | ||
"name": "Find repository installation", | ||
"enabledForApps": false, | ||
"githubCloudOnly": false, | ||
"method": "GET", | ||
"path": "/users/:username/installation", | ||
"previews": [ | ||
{ | ||
"name": "machine-man", | ||
"description": "**Note:** To access the API with your GitHub App, you must provide a custom [media type](/v3/media) in the `Accept` Header for your requests.\n\n`application/vnd.github.machine-man-preview+json`", | ||
"required": true | ||
} | ||
], | ||
"params": [ | ||
{ | ||
"name": "username", | ||
"type": "string", | ||
"required": true, | ||
"description": "", | ||
"location": "url" | ||
} | ||
], | ||
"description": "Enables an authenticated GitHub App to find the user’s installation information.\n\nYou must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.", | ||
"responses": [ | ||
{ | ||
"headers": { | ||
"status": "200 OK", | ||
"content-type": "application/json; charset=utf-8" | ||
}, | ||
"body": { | ||
"id": 3, | ||
"account": { | ||
"login": "octocat", | ||
"id": 1, | ||
"node_id": "MDQ6VXNlcjE=", | ||
"avatar_url": "https://github.com/images/error/octocat_happy.gif", | ||
"gravatar_id": "", | ||
"url": "https://api.github.com/users/octocat", | ||
"html_url": "https://github.com/octocat", | ||
"followers_url": "https://api.github.com/users/octocat/followers", | ||
"following_url": "https://api.github.com/users/octocat/following{/other_user}", | ||
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", | ||
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", | ||
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions", | ||
"organizations_url": "https://api.github.com/users/octocat/orgs", | ||
"repos_url": "https://api.github.com/users/octocat/repos", | ||
"events_url": "https://api.github.com/users/octocat/events{/privacy}", | ||
"received_events_url": "https://api.github.com/users/octocat/received_events", | ||
"type": "User", | ||
"site_admin": false | ||
}, | ||
"repository_selection": "selected", | ||
"access_tokens_url": "https://api.github.com/installations/3/access_tokens", | ||
"repositories_url": "https://api.github.com/installation/repositories", | ||
"html_url": "https://github.com/organizations/github/settings/installations/3", | ||
"app_id": 2, | ||
"target_id": 1, | ||
"target_type": "User", | ||
"permissions": { | ||
"checks": "write", | ||
"metadata": "read", | ||
"contents": "read" | ||
}, | ||
"events": [ | ||
"label" | ||
], | ||
"created_at": "2018-02-22T20:51:14Z", | ||
"updated_at": "2018-02-22T20:51:14Z", | ||
"single_file_name": null | ||
} | ||
} | ||
], | ||
"idName": "find-user-installation", | ||
"documentationUrl": "https://developer.github.com/v3/apps/#get-a-user-installation", | ||
"deprecated": { | ||
"date": "2019-04-10", | ||
"message": "\"Find repository installation\" renamed to \"Get a repository installation\"", | ||
"before": { | ||
"idName": "find-user-installation" | ||
}, | ||
"after": { | ||
"idName": "get-user-installation" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.