Connect GitHub to AI Code All
Connecting takes about two minutes and has two parts: install the AI Code All app on GitHub, then link the repositories your team may use. Files can only be pulled from linked repositories.
Before you start
- GitHub integration is part of the Pro, Business and Team plans.
- You need to be an owner or admin of your AI Code All organization to connect GitHub and link repositories. Members can pull files once a repository is linked.
- On GitHub you need permission to install apps on the account or organization that owns the repository. If you don't have it, GitHub sends an approval request to the owner (see below).
Step 1: Connect GitHub
- In AI Code All, open Account & usage → Organization and find the GitHub card.
- Click Connect GitHub. You're taken to GitHub.
- Choose where to install the app: your personal account or your company's GitHub organization.
- Choose Only select repositories and pick the repositories that hold your code. (All repositories also works, but giving access only to what you need is safer.)
- Click Install & Authorize. GitHub sends you back to AI Code All, and the card shows Connected.
AI Code All checks with GitHub that your GitHub account can really see that installation before it's saved, so nobody can attach someone else's repositories.
Step 2: Link a repository Don't skip this
Connecting GitHub doesn't share anything with your team yet. You choose exactly which repositories AI Code All may use.
- On the same GitHub card, under Link a repository, pick a repository from the list.
- Click Link repository. It appears under Repositories AI Code All may use.
- Repeat for any other repositories. You can Unlink one at any time.
Don't see the repository in the list? The app doesn't have access to it yet. Click configure the app on the card, add the repository on GitHub, then reload the Organization page.
Step 3: Pull a file into Update Code
- Open Code Generator → Update existing code.
- Click Pull a file from GitHub above Current code.
- Pick the repository and branch. The default branch is listed first.
- Type part of the file name (for example
orders.py) and select the file. Source undersrc/,app/andlib/is listed first. - Click Load into Current code. The code and its file path are filled in for you.
- Describe the change and click Update Code. Then send it back as a pull request.
AI Code All remembers exactly which version of the file you pulled (branch and commit), so it can check for conflicts with newer changes on that branch before it opens the pull request. Code Generator results can be sent to GitHub the same way.
Step 4: Send the change back to GitHub
- After Update Code finishes, a Send to GitHub panel appears under the result, showing the repository, branch and file.
- Click Check branch and open pull request.
- AI Code All compares your version with the branch as it is now:
- Nobody else changed the file: your change is pushed.
- Someone changed other lines of the file: both sets of changes are merged and pushed.
- Someone changed the same lines: nothing is sent. You see the overlapping lines; pull the latest version, re-apply your change and send again.
- AI Code All pushes to a new branch named
aicodeall/…and opens a pull request into the branch you pulled from. Review and merge it on GitHub as usual.
Merge check before the pull request
Every time you send code to GitHub, AI Code All checks the target branch first, file by file.
- If the file is new, hasn't changed since you pulled it, or changed only in other lines, the pull request goes ahead (other people's changes are kept).
- If it changed in the same lines, was deleted, or GitHub can't be reached, sending is blocked, so you don't overwrite a teammate's newer work.
What AI Code All can and can't do with your repositories
| Reads | Files from linked repositories only, when someone in your organization pulls one. |
|---|---|
| Writes | Only to a new branch named aicodeall/…, with a pull request for your team to review. Never to an existing branch, never to your default branch, and never inside .github/. |
| Stores | Which repositories are linked and which file versions were pulled. No GitHub passwords or tokens are stored; access is requested fresh for each action and limited to one repository. |
| Permissions | Repository contents and pull requests (read and write), plus metadata (read-only). Nothing else. |
If your company owns the GitHub organization
If you aren't an owner of the GitHub organization, step 1 sends an installation request to its owners instead of installing. AI Code All shows a message saying the request was sent.
- Ask a GitHub organization owner to approve the AI Code All app (GitHub notifies them, and they can also find it under the organization's Settings → GitHub Apps).
- Once it's approved, come back to the Organization page in AI Code All and click Connect GitHub again to finish.
Disconnecting
- In AI Code All, click Disconnect next to the GitHub account on the Organization page. This removes the connection and all linked repositories from AI Code All.
- To remove the app from GitHub completely, go to GitHub Settings → Applications → Installed GitHub Apps, choose AI Code All, then Uninstall.
Troubleshooting
There's no "Pull a file from GitHub" box in Update Code
No repository is linked yet. Complete step 2 on the Organization page.
"That GitHub installation isn't visible to your GitHub account"
You signed in to GitHub with a different account from the one that can see the installation. Sign in to GitHub with the right account and click Connect GitHub again.
"Start the GitHub connection from your Organization page"
The app was installed directly on GitHub. Go to the Organization page in AI Code All and click Connect GitHub, so the two accounts can be matched safely.
"GitHub refused access"
The app was uninstalled or no longer has access to that repository. Check the app's repository access on GitHub (configure the app), or disconnect and connect again.
"GitHub integration is part of the Business and Team plans"
Your organization doesn't have an active subscription. Start or renew it under Organization → Billing.
Still stuck? Contact us.