Your engineers already review, version, and adapt code in GitHub. Connect an Aha! Builder application to a GitHub repository so they can work on what you build in the tools they rely on, then bring their changes back into your application.
Use GitHub sync to back up your code, have engineers review it, or adapt it to your own product with the coding tools your team already uses. When you only need to hand over a one-time copy, download or share your code instead.
Click any of the following links to skip ahead:
Prerequisites
Action |
User permissions |
|---|---|
Connect GitHub, push, and pull code |
How GitHub sync works
Code moves when you choose: Connecting a repository does not transfer any code. Your code moves when you push or pull, or when you turn on automatic pushes.
The connection depends on the owner who made it: You need access to the GitHub repository when you connect it. After that, sync runs through the Aha! Builder GitHub App instead of your GitHub account, so it keeps working if your GitHub access changes. If you lose access to the application in Aha! Builder, the sync stops working until another owner reconnects it.
One repository per application: Create a dedicated repository for each Aha! Builder application instead of connecting one your product code already lives in.
Every push is a commit: Your team can track versions and review diffs in GitHub. Commits from Aha! Builder appear under the aha-elle account.
Some services stay in Aha! Builder: The code in GitHub still depends on Aha! Builder infrastructure for SSO, user management, file upload and storage, AI, and email sending. The Aha! Builder technical reference explains how each of those capabilities works.
Connect a repository
From the application, navigate to Implement -> Code.
Click the GitHub tab.
Click Connect GitHub, then authorize access to your GitHub account.
-
Select a repository from the Repository dropdown.
If the repository you want does not appear, click Reload repositories.
Click Connect repository.
Push changes to GitHub
Push when you want your engineers to see what you have built in Aha! Builder.
Click Push to GitHub.
Review the files under Outgoing changes, then click Push.
A confirmation shows the GitHub branch and commit your push created, and Last pushed shows when you last synced.
To skip the manual step, turn on Automatically push commits.
This setting applies to commits on every branch of your application. You do not need to create matching branches in GitHub first. Aha! Builder handles the branching for you.
Pull changes from GitHub
Pull when your engineers have changed the code in GitHub and you want those changes in your application.
Click Pull from GitHub.
-
Review the Incoming changes. The What changed summary describes the update in plain language, and the file list shows each file that changed in GitHub.
Click View diff on GitHub to see the line-by-line changes.
Click Pull from GitHub again to apply the changes to your application.
To undo a pull, roll back to an earlier version from the History tab.
Resolve conflicts
A conflict happens when the same code changed in both GitHub and Aha! Builder. When a pull finds one, Conflicting changes marks each affected file with Has conflict, and you cannot push or pull again until you resolve the merge.
Click Ask Elle to resolve to hand the merge to Elle (the AI assistant).
-
Answer Elle's questions about any conflict that involves a design choice or your intent.
Elle resolves obvious code conflicts on its own and runs code checks before it commits the merge.
Review the result in Preview.
Click Cancel pull instead to leave your application as it is.
Disconnect
Choose how much of the connection to remove:
Disconnect repository: Stop syncing with the current repository and keep your GitHub account connected, so you can connect a different repository.
Disconnect GitHub: Remove your GitHub account from the application.
Disconnecting does not delete code in Aha! Builder or GitHub.
If you get stuck, please reach out to our Customer Success team. Our team is made up entirely of product experts and responds fast.