To connect your website's GitHub repository, go to Integrations, open the Website tab and select Connect account on the GitHub card. GitHub opens and asks you to install the Valiant app. Choose Only select repositories, pick the one repository that holds your website, and select Install. You return to ValiantAI, and the card shows Connected with the repository and branch your approved changes go to.
Use GitHub if your website is built from code (for example a site a developer built, or a GitHub Pages site). If your site runs on WordPress, see How to connect your WordPress site to ValiantAI instead.
Before you start
You have a GitHub account that can install apps on the account or organization that owns the repository. If the repository belongs to a GitHub organization and you are not an owner, GitHub sends a request to an owner instead of installing the app (see "Things to know" below).
You know which repository holds your website.
If a developer manages the repository for you, they can connect it instead. See Can my web developer connect my website to ValiantAI for me?
Steps
In the left sidebar, select Integrations, then open the Website tab.
On the GitHub card ("For sites built from code. We save approved changes to your repository."), select Connect account. Your browser goes to GitHub.
Sign in to GitHub if asked. If you belong to more than one GitHub account or organization, choose the one that owns your website's repository.
Under repository access, select Only select repositories. Do not choose All repositories: ValiantAI refuses an install that covers every repository.
Open Select repositories and choose the one repository that holds your website.
Review the permissions the app requests, then select Install. GitHub sends you back to the Website tab in ValiantAI.
What you see when it is connected
The GitHub card shows Connected and the repository name. Its status line reads "Changes go to" followed by the repository and, in brackets, its default branch, for example "Changes go to yourname/yoursite (main)". If ValiantAI recognizes the service that publishes your site from that repository, the line also says whether that service publishes automatically.
Below the cards, the Connected site section lists the Repository, What we can do and, once ValiantAI has used the connection, Last used. The card also offers Reconnect, Change account and Disconnect. See How to change or disconnect your website connection.
What ValiantAI can do in your repository
With the connection in place, ValiantAI can:
read the code for your website in the one repository you chose, and
commit the website updates you approve, and any design adjustments you add, one by one.
ValiantAI never touches your other repositories or changes anything you have not approved. See What can ValiantAI access on my website once it's connected?
What happens next
Your site appears on the Your Website page, where you request and approve changes. Approved changes are committed to the branch shown on the card. If they do not appear on your live site, see Website changes are not showing on my GitHub-connected site.
Things to know
One repository only: If you grant access to more than one repository, ValiantAI ignores archived repositories and looks for the one that names your website's domain in its configuration (for example a CNAME file). If it cannot tell which one holds your site, or you granted more than 25 repositories, the connection fails. The GitHub card then reads "We couldn't see your repository. Give access to the repository that holds your site, then try again." (the setup screen reads "Choose just the one repository that holds your site, then try again."). See GitHub connection fails: "You gave us access to all your repositories" or "We couldn't see your repository".
For GitHub organizations: If you are a member but not an owner of the organization, GitHub shows Install and request or Request instead of Install and asks an owner to approve. The card shows Connecting, and ValiantAI is not told when the owner approves. If this is your first website connection, Reconnect and Change account answer "Your website isn't connected yet. Connect it first." while the card shows Connecting, so once the owner has approved, message ValiantAI support from the chat inside ValiantAI (see How to contact ValiantAI support) with your repository's name so they can help you finish the connection.
One website at a time: While GitHub is connected, the WordPress card's button reads "Use WordPress instead".
Connecting during setup: The setup screen asks you to "Install the Valiant app on the GitHub repository that holds" your domain, with a "Continue to GitHub" button. It also has a link, Did a developer build your site? Send this to them, which emails your developer a link to connect it. See How to connect your website during setup.
Changing which repositories the app can see later: You can do this on GitHub under Settings > Applications > Installed GitHub Apps > Configure. Removing the website's repository or uninstalling the app disconnects your website in ValiantAI.
In the ValiantAI mobile app: GitHub opens in a browser inside the app, and the Website tab refreshes when you return.
For a fuller walkthrough of GitHub's own screens, see How to set up GitHub so ValiantAI can update your site.
Related articles
