Skip to content

Commit 214fc2d

Browse files
author
Sarah Edwards
authored
update content about github app installation (#36783)
1 parent c353cad commit 214fc2d

14 files changed

+297
-159
lines changed

content/apps/creating-github-apps/guides/migrating-oauth-apps-to-github-apps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ As the app owner, you should include calls to action to encourage your users to
8686

8787
If you want your {% data variables.product.prodname_github_app %} to make API requests on behalf of itself or access organization or repository resources, the user must install your {% data variables.product.prodname_github_app %}. When a user installs a {% data variables.product.prodname_github_app %} on their account or organization, they choose which repositories the app can access, and they grant the app the organization and repository permissions that it requested.
8888

89-
To help your users install your {% data variables.product.prodname_github_app %}, you can add a link to your app's webpage that users can click to install the {% data variables.product.prodname_github_app %}. The format of the install URL is `https://github.com/apps/YOUR_APP_NAME/installations/new`. Replace `YOUR_APP_NAME` with the name of your {% data variables.product.prodname_github_app %} (converted to lowercase, with spaces replaced by `-`, and with special characters replaced).
89+
To help your users install your {% data variables.product.prodname_github_app %}, you can add a link to your app's webpage that users can click to install the {% data variables.product.prodname_github_app %}. The format of the install URL is `{% data variables.product.oauth_host_code %}/{% ifversion ghes or ghae %}github-apps{% else %}apps{% endif %}/YOUR_APP_NAME/installations/new`. Replace `YOUR_APP_NAME` with the sluggified name of your {% data variables.product.prodname_github_app %}, which you can find in the "Public link" field on the settings page for your {% data variables.product.prodname_github_app %}.
9090

9191
To pre-select any repositories your {% data variables.product.prodname_oauth_app %} had access to, you can append `/permissions` and query parameters to the install URL. This helps users grant your {% data variables.product.prodname_github_app %} access to repositories that your {% data variables.product.prodname_oauth_app %} already has access to. The query parameters are:
9292

9393
- `suggested_target_id`: The ID of the user or organization that is installing your {% data variables.product.prodname_github_app %}. This parameter is required.
9494
- `repository_ids[]`: The repository IDs to select for the installation. If omitted, all repositories are selected. The maximum number of repositories that can be pre-selected is 100. To get a list of repositories that your {% data variables.product.prodname_oauth_app %} has access to, use the [List repositories for the authenticated user](/rest/repos#list-repositories-for-the-authenticated-user) and [List organization repositories](/rest/repos#list-organization-repositories) endpoints.
9595

96-
For example: `https://github.com/apps/YOUR_APP_NAME/installations/new/permissions?suggested_target_id=ID_OF_USER_OR_ORG&repository_ids[]=REPO_A_ID&repository_ids[]=REPO_B_ID`.
96+
For example: `{% data variables.product.oauth_host_code %}/{% ifversion ghes or ghae %}github-apps{% else %}apps{% endif %}/YOUR_APP_NAME/installations/new/permissions?suggested_target_id=ID_OF_USER_OR_ORG&repository_ids[]=REPO_A_ID&repository_ids[]=REPO_B_ID`.
9797

9898
{% ifversion ghec or fpt %}For more information about installing {% data variables.product.prodname_github_app %}s, see "[AUTOTITLE](/apps/using-github-apps/installing-an-app-in-your-personal-account)" and "[AUTOTITLE](/apps/using-github-apps/installing-an-app-in-your-organization)."{% endif %}
9999

content/apps/maintaining-github-apps/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Maintaining {% data variables.product.prodname_github_apps %}
2+
title: 'Maintaining {% data variables.product.prodname_github_apps %}'
33
intro: 'After you create and register a {% data variables.product.prodname_github_app %}, you can make modifications to the app, change permissions, transfer ownership, and delete the app.'
44
redirect_from:
55
- /apps/building-integrations/managing-github-apps
@@ -16,9 +16,11 @@ children:
1616
- /about-github-app-managers
1717
- /modifying-a-github-app
1818
- /managing-allowed-ip-addresses-for-a-github-app
19-
- /installing-github-apps
19+
- /installing-your-own-github-app
20+
- /sharing-your-github-app
2021
- /activating-optional-features-for-github-apps
2122
- /suspending-a-github-app-installation
2223
- /transferring-ownership-of-a-github-app
2324
- /deleting-a-github-app
2425
---
26+

content/apps/maintaining-github-apps/installing-github-apps.md

Lines changed: 0 additions & 68 deletions
This file was deleted.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
title: Installing your own GitHub App
3+
intro: 'You can install your {% data variables.product.prodname_github_app %} on the user or organization account that owns the app. If your app is public, the {% data variables.product.prodname_github_app %} can also be installed on other accounts.'
4+
redirect_from:
5+
- /apps/installing-github-apps
6+
- /developers/apps/installing-github-apps
7+
- /developers/apps/managing-github-apps/installing-github-apps
8+
- /apps/maintaining-github-apps/installing-github-apps
9+
versions:
10+
fpt: '*'
11+
ghes: '*'
12+
ghae: '*'
13+
ghec: '*'
14+
topics:
15+
- GitHub Apps
16+
shortTitle: Install your app
17+
---
18+
19+
## About installing your own {% data variables.product.prodname_github_app %}
20+
21+
Once you create a {% data variables.product.prodname_github_app %}, you can install it. If your {% data variables.product.prodname_github_app %} is owned by a personal account{% ifversion ghec%} and you are not an {% data variables.product.prodname_emu %}{% endif %}, you can install it on your account. If your {% data variables.product.prodname_github_app %} is owned by an organization and you are an organization owner, you can install it on your organization.
22+
23+
{% ifversion fpt or ghec %}
24+
If your {% data variables.product.prodname_github_app %} is public{% ifversion ghec%} and you are not an {% data variables.product.prodname_emu %}{% endif %}, you can also share your {% data variables.product.prodname_github_app %} with other users or organizations. {% ifversion ghec%}If you are an {% data variables.product.prodname_emu %}, then you can only share your app with other organizations within your enterprise.{% endif %}For more information, see "[AUTOTITLE](/apps/maintaining-github-apps/sharing-your-github-app)."
25+
{% else %}
26+
If your {% data variables.product.prodname_github_app %} is public, you can also share your {% data variables.product.prodname_github_app %} with other users or organizations within your enterprise. For more information, see "[AUTOTITLE](/apps/maintaining-github-apps/sharing-your-github-app)."
27+
{% endif %}
28+
29+
## Installing your own {% data variables.product.prodname_github_app %}
30+
31+
{% data reusables.apps.settings-step %}
32+
{% data reusables.user-settings.developer_settings %}
33+
{% data reusables.user-settings.github_apps %}
34+
1. Next to the {% data variables.product.prodname_github_app %} that you want to install, click **Edit**.
35+
1. Click **Install App**.
36+
1. Click **Install** next to the location where you want to install the {% data variables.product.prodname_github_app %}.
37+
1. If the app requires repository permissions, select **All repositories** or **Only select repositories**. The app will always have at least read-only access to all public repositories on {% data variables.product.company_short %}.
38+
39+
If the app does not require repository permissions, these options will be omitted.
40+
1. If you selected **Only select repositories** in the previous step, under the **Select repositories** dropdown, select the repositories that you want the app to access.
41+
42+
If the app creates any repositories, the app will automatically be granted access to those repositories as well.
43+
1. Click **Install**.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: Sharing your GitHub App
3+
intro: 'You can share your {% data variables.product.prodname_github_app %} with other users.'
4+
versions:
5+
fpt: '*'
6+
ghec: '*'
7+
ghae: '*'
8+
ghes: '*'
9+
shortTitle: Share your app
10+
---
11+
12+
{% ifversion fpt or ghec %}
13+
14+
### Sharing your {% data variables.product.prodname_github_app %} on {% data variables.product.prodname_marketplace %}
15+
16+
If your {% data variables.product.prodname_github_app %} is public, you can choose to publish it to {% data variables.product.prodname_marketplace %}. For more information, see "[AUTOTITLE](/apps/publishing-apps-to-github-marketplace/github-marketplace-overview/about-github-marketplace)."
17+
18+
{% ifversion ghec %}If you are an {% data variables.product.prodname_emu %}, then you cannot share your app on {% data variables.product.prodname_marketplace %}.{% endif %}
19+
20+
For more information about how users can install your app from {% data variables.product.prodname_marketplace %}, see "[AUTOTITLE](/apps/using-github-apps/installing-a-github-app-from-github-marketplace-for-your-organizations)" and "[AUTOTITLE](/apps/using-github-apps/installing-a-github-app-from-github-marketplace-for-your-personal-account)."
21+
22+
{% endif %}
23+
24+
### Sharing your {% data variables.product.prodname_github_app %} via an install link
25+
26+
{% ifversion fpt or ghec %}
27+
If your {% data variables.product.prodname_github_app %} is public, other users and organizations {% ifversion ghae or ghec %}within your enterprise {% endif %}can install your app. For more information about making your app public, see "[AUTOTITLE](/apps/creating-github-apps/setting-up-a-github-app/making-a-github-app-public-or-private)."
28+
29+
{% ifversion ghec %}If you are an {% data variables.product.prodname_emu %}, then you can only share your app with other users or organizations within your enterprise.{% endif %}
30+
31+
{% else %}
32+
{% endif %}
33+
34+
{% data reusables.apps.settings-step %}
35+
{% data reusables.user-settings.developer_settings %}
36+
{% data reusables.user-settings.github_apps %}
37+
1. Next to the {% data variables.product.prodname_github_app %} that you want to share, click **Edit**.
38+
1. Click **Public page**. {% data variables.product.company_short %} will bring you to the public page for your {% data variables.product.prodname_github_app %}.
39+
1. Click **Install**. {% data variables.product.company_short %} will bring you to the installation URL for your {% data variables.product.prodname_github_app %}. The URL will look something like `{% data variables.product.oauth_host_code %}/{% ifversion ghes or ghae %}github-apps{% else %}apps{% endif %}/APP-NAME/installations/new`, where `APP-NAME` is the name of the {% data variables.product.prodname_github_app %}.
40+
1. Share the installation URL with other users. For more information about how users can install your app from this URL, see "[AUTOTITLE](/apps/using-github-apps/installing-a-github-app-from-a-third-party)."
41+
42+
When you share the URL, you can include a `state` query parameter in the installation URL to preserve the state of the application page and return people back to that state after they install, authenticate, or accept updates to your GitHub App. For example, you could use the `state` to correlate an installation to a user or account.
43+
44+
To preserve a state, add it to the installation URL: `{% data variables.product.oauth_host_code %}/{% ifversion ghes or ghae %}github-apps{% else %}apps{% endif %}/<app name>/installations/new?state=AB12t`

content/apps/using-github-apps/authorizing-github-apps.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@ You can review and revoke your authorization at any time. For more information,
2929

3030
## Difference between authorization and installation
3131

32-
When you install a {% data variables.product.prodname_github_app %} on your account or organization, you grant the app permission to access the organization and repository resources that it requested. You also specify which repositories the app can access.
33-
34-
When you authorize a {% data variables.product.prodname_github_app %} you grant the app access to your GitHub account, based on the account permissions the app requested. You also grant the app permission to act on your behalf.
35-
36-
You can install a {% data variables.product.prodname_github_app %} without authorizing the app. Similarly, you can authorize the app without installing the app.
32+
{% data reusables.apps.install-vs-authorize %}
3733

3834
For more information about installation, see {% ifversion ghec or fpt %}"[AUTOTITLE](/apps/using-github-apps/installing-an-app-in-your-personal-account)" and "[AUTOTITLE](/apps/using-github-apps/installing-an-app-in-your-organization)."{% else %}"[AUTOTITLE](/apps/maintaining-github-apps/installing-github-apps)."{% endif %}
3935

content/apps/using-github-apps/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ versions:
1313
shortTitle: 'Using {% data variables.product.prodname_github_apps %}'
1414
children:
1515
- /about-using-github-apps
16-
- /installing-a-github-app-in-your-personal-account
17-
- /installing-a-github-app-in-your-organization
16+
- /installing-a-github-app-from-github-marketplace-for-your-personal-account
17+
- /installing-a-github-app-from-github-marketplace-for-your-organizations
18+
- /installing-a-github-app-from-a-third-party
1819
- /authorizing-github-apps
1920
- /reviewing-and-revoking-authorization-of-github-apps
2021
- /approving-updated-permissions-for-a-github-app

0 commit comments

Comments
 (0)