Connect GitHub to firfree
Connecting takes about two minutes and has two parts: install the firfree app on GitHub, then link the repositories your team may use. Websites can only be sent to linked repositories.
Before you start
- GitHub integration is part of the Pro and Agency plans.
- You need to be an owner or admin of your firfree agency (or have Pro) to connect GitHub and link repositories. Members can send sites 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 firfree, open Agency → Members & settings (Pro: Account & usage → My Pro plan) 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 your websites should go to. (All repositories also works, but giving access only to what you need is safer.)
- Click Install & Authorize. GitHub sends you back to firfree, and the card shows Connected.
firfree 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 firfree may use.
- On the same GitHub card, under Link a repository, pick a repository from the list.
- Click Link repository. It appears under Repositories firfree 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 Agency page.
Step 3: Send a website to GitHub
- Open a website in the code builder (the Send to GitHub panel is under Publish) or the visual builder (click Publish; the panel is in the publish window).
- Pick the repository and the branch the pull request should go into.
- Optionally type a folder (for example
siteordocs); leave it blank to use the repository root. - Click Open pull request. Your saved files go to a new branch named
firfree/…and a pull request opens for review. Visual-builder sites are sent as their published files: the pages,styles.css,script.jsand your images.
Merge check before the pull request
- Files that are new, or exactly the same on the branch, are fine (identical files are skipped).
- firfree remembers what it last sent from this site to this repository and folder. If someone changed a file on GitHub since then, their change is merged with yours when the edits are in different places.
- If you both changed the same lines, nothing is sent and you see the overlapping lines. Merge the changes on GitHub first.
- The first time you send a site to a folder that already has different files, nothing is sent unless you tick Replace files that already exist. The pull request then shows exactly what changes, so you can review it before merging.
What firfree can and can't do
| Reads | The file list and the files it is about to replace in a linked repository, when someone sends a site. |
|---|---|
| Writes | Only to a new branch named firfree/…, with a pull request for you to review. Never to an existing branch, never to your default branch, and never inside .github/. |
| Stores | Which repositories are linked, and the text of the files last sent from each site (to merge-check the next send). 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. firfree shows a message saying the request was sent.
- Ask a GitHub organization owner to approve the firfree 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 Agency page in firfree and click Connect GitHub again to finish.
Disconnecting
- In firfree, click Disconnect next to the GitHub account on the Agency page. This removes the connection and all linked repositories from firfree.
- To remove the app from GitHub completely, go to GitHub Settings → Applications → Installed GitHub Apps, choose firfree, then Uninstall.
Troubleshooting
There's no "Send to GitHub" panel in the editor
GitHub isn't connected for your agency or Pro plan yet, or no repository is linked. Complete step 1 and step 2.
"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 Agency page"
The app was installed directly on GitHub. Go to the Agency page in firfree 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 Agency and Pro plans"
Your agency doesn't have an active subscription. Start or renew it under Agency → Billing & seats.
Still stuck? Contact us.