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

Commit

Permalink
fix: add deprecated find-user-installation route
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Apr 18, 2019
1 parent d79523e commit c60d9e1
Show file tree
Hide file tree
Showing 12 changed files with 1,011 additions and 0 deletions.
85 changes: 85 additions & 0 deletions routes/api.github.com/apps.json
Expand Up @@ -743,6 +743,91 @@
"idName": "get-user-installation",
"documentationUrl": "https://developer.github.com/v3/apps/#get-a-user-installation"
},
{
"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"
}
}
},
{
"name": "Create a GitHub App from a manifest",
"enabledForApps": false,
Expand Down
85 changes: 85 additions & 0 deletions routes/api.github.com/apps/find-user-installation.json
@@ -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"
}
}
}
85 changes: 85 additions & 0 deletions routes/api.github.com/index.json
Expand Up @@ -2895,6 +2895,91 @@
"idName": "get-user-installation",
"documentationUrl": "https://developer.github.com/v3/apps/#get-a-user-installation"
},
{
"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"
}
}
},
{
"name": "Create a GitHub App from a manifest",
"enabledForApps": false,
Expand Down
84 changes: 84 additions & 0 deletions routes/ghe-2.14/apps.json
Expand Up @@ -694,6 +694,90 @@
"idName": "get-user-installation",
"documentationUrl": "https://developer.github.com/enterprise/2.14/v3/apps/#get-a-user-installation"
},
{
"name": "Find repository installation",
"enabledForApps": 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](/enterprise/2.14/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](/enterprise/2.14/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/enterprise/2.14/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"
}
}
},
{
"name": "List repositories",
"enabledForApps": true,
Expand Down

0 comments on commit c60d9e1

Please sign in to comment.