4.4 KiB
title, description, keywords, author, ms.author, ms.date, ms.topic, ms.assetid, ms.service, ms.custom
| title | description | keywords | author | ms.author | ms.date | ms.topic | ms.assetid | ms.service | ms.custom |
|---|---|---|---|---|---|---|---|---|---|
| Connecting Repositories Using the GitHub App | How to use the App Center GitHub App | build, ios, android, github | lucen-ms | lucen | 10/10/2019 | article | 7868b0c8-bbe7-49e3-a059-0630f4d54a6d | vs-appcenter | build |
Connecting Repositories Using the GitHub App
[!INCLUDE Retirement announcement for App Center]
In this document, you'll learn how to install the App Center GitHub app and use this integration in your development workflow.
Installing the App Center GitHub App
The App Center GitHub app is a GitHub Marketplace app and can be installed directly from GitHub.
To install the app, open a pull request in GitHub in a repository with a mobile project. After opening this pull request, a notification appears to set up continuous integration (CI) via a CI GitHub app. This notification only appears if you don't have any CI GitHub apps installed.
Follow the link in the notification to the mobile CI category of apps and choose the App Center app. Pick one of four plans, including a free tier, and install the app. The app can be installed in both your personal GitHub account and GitHub organizations.
Onboarding Repositories using the GitHub App
After installing the GitHub App, sign in to App Center or create a new App Center account. Next, select the repository to set up and follow the wizard to create your app(s). The repositories shown are the ones App Center is authorized to see. Additional repositories can be shared by changing the GitHub app configuration.
Note
If the GitHub app was installed in a GitHub organization, an App Center organization is automatically created and that organization will be the owner of the new apps. Other members must be added to the App Center organization to see or edit the apps in App Center. You can read more about App Center organizations.
Branches must be configured before a build can start. Read more about configuring your branch in the "Configure a build" articles respectively for Android, iOS, and Windows. If you’re building a pull request, specify the configuration for the target branch of that pull request.
Reporting Build Status to GitHub
Opening a pull request on GitHub will start an App Center build, copying the build configuration of the target branch. App Center will skip the Launch Test and Distribution steps during this build. As the build runs and completes, App Center reports build status back to GitHub in the Checks tab of the pull request view. Navigate back to the build on App Center by clicking the View more details on App Center link. Pull requests from a forked repository won't build until merged or show under the Checks tab.
Note
When opening a pull request on an unconfigured branch, the Checks tab will show that there's Action Required. Click the Resolve link to configure the branch.
Connecting a New Repository
Add a new app by adding repository access to your GitHub app installation. Configure your GitHub app installation and select the new repository to grant access to and connect. After clicking Save, you'll be redirected to App Center to configure your new app.
Note
The best way to take advantage of this is to choose access for Only select repositories and add each repository as you want to configure it. You may also need to add private submodules if your build depends on them.
Additionally after you install the GitHub app, App Center sends a welcome email. Connect a new repository via the GitHub app by clicking the Connect your repository button in the email and repeat the process to create a new connection.
Connecting Existing Apps
Existing App Center apps aren't able to report build status to GitHub, unless they were onboarded with the steps above. Create a new app via the email link to take advantage of this feature.

