Repair GitHub Connection for Projects
Contentstack Launch enables you to automatically repair the GitHub connection for existing projects. When your Launch GitHub App gets disconnected, the connection for existing projects will become invalid, preventing Launch from interacting with GitHub.
This step-by-step guide will help you repair the GitHub connection for projects in Contentstack Launch.
When Repair Connection Appears
The Repair Connection button only shows up when your project's GitHub connection is actually broken, it's not a general-purpose action you need to click otherwise. This happens in one of three cases:
- The GitHub App was uninstalled: removed on the GitHub side by you or your GitHub Admin
- The connection was deleted from Launch: the GitHub connection was removed from Settings → Connected Accounts.
- The connected GitHub account didn't grant access to the relevant repository: for example, only specific repositories were selected during authorization, and the project's repository wasn't one of them.
Prerequisites
- Contentstack account
- Launch-enabled Organization with Owner or Admin permissions
- Project repository available in GitHub
What You Will Learn
How to check the Git connection status for a Launch project.
How to repair a broken GitHub connection automatically.
How to resolve common GitHub connection errors.
Steps for Execution
Follow the steps below to repair the GitHub connection in your project automatically, after you have logged into your Contentstack account:
- From the Launch landing page, select your project.
- On the left-hand side primary navigation, click the Settings icon.
- Under General, you can see the Git Connection section.
You can view the status of your Git connection in this section along with a link to your Git repository.Click to enlargeAdditional Resource Refer to the Change Git Repository for a Project guide to change the Git repository for your project.
- If there's any connection error between your Git repository and project, as shown in the following screenshot, you can click the Repair Connection button.Click to enlarge
Launch will automatically repair the connection between your project and the Git repository.
Troubleshooting
If you are experiencing any of the below issues or errors while trying to repair your GitHub connection, follow the steps provided to troubleshoot the problem for the specific error encountered.
- Please connect to a git provider OAuth app before proceeding with the repair:
Your GitHub is currently disconnected.- Reconnect your Github Account in Settings -> Connected Accounts.
Once reconnected, every Launch project that has access to the relevant repository is automatically repaired, you don't need to repeat this for each project individually.
- Reconnect your Github Account in Settings -> Connected Accounts.
- Git provider OAuth app is uninstalled. Please reconnect the git provider OAuth app before proceeding with the repair:
“Contentstack Launch” app is uninstalled in GitHub. Follow these steps to repair the connection:- Go to Settings → Connected Accounts.
- Find the connection showing a Connection issue badge.
- Click Re-authenticate on that card.
Click to enlarge
Important: When re-authenticating, grant access to the repository this project uses, if it's not selected during re-authentication, the project stays broken even after you complete this flow.