GuideUpdated: 2026-11-22

Code fixes as pull requests: GitHub, GitLab and Bitbucket

How to connect the site's code repository on GitHub, GitLab or Bitbucket, how AI fixes are opened as pull requests (merge requests on GitLab), how to review and merge them and how they are verified on the next crawl.

Open this screen in the panel

If your site's source code lives on GitHub, GitLab or Bitbucket, SEOAsist can fix the issues the audit finds in the code and open a pull request (a merge request on GitLab). Nothing goes live on your site until you merge it. A code fix is permanent; unlike Pixel rules that run in the browser, bots that don't run JavaScript see the fixed page too.

Before you start

  • You need edit rights in the organization.
  • An access token that can write to the repository.
  • A usable AI model on Settings → AI.
  • Code fixes left on your plan: per month Free 1, Starter 5, Pro 30, Agency 150 PRs (Plans).

1. Connect the code host

  1. Open Settings → Integrations.
  2. On the card of the service that hosts the repository, enter the token and click Connect:
    • GitHub: Settings → Developer settings → Fine-grained token. Pick the repositories; permissions Contents: Read and write and Pull requests: Read and write.
    • GitLab: Preferences → Access tokens (or a project / group access token); scope api, role Developer or higher. On a self-hosted GitLab also enter its https address; it must be reachable from the internet.
    • Bitbucket: Personal settings → App passwords (or API tokens) with the username, or a repository / workspace access token alone; permissions Repositories: Write and Pull requests: Write.
  3. Click Test to try the token. On success you see the service, the account name and the number of repositories it can write to.
  1. Open the site from Sites and go to the Fix channels tab.
  2. On the Code repositories card click Add repository.
  3. Type the repository as owner/repo (on GitLab group/subgroup/repo) or paste its link, and pick its host.
  4. Pick the repository's role: Frontend, API, Mobile or Other. In a monorepo, if the site's code is in a subfolder, enter the folder (e.g. apps/web) and the branch if needed. Leave them empty to use the repository root and default branch.
  5. Click Add. SEOAsist checks that the token can write to this repository.

A site can have several repositories. One is the Primary; switch it with Make primary. Page, meta, HTML, sitemap, robots and structured data issues are fixed in the frontend repository, everything else in the primary one; you can also pick the repository yourself when you start a fix.

3. Start a fix

  1. In Health › Issues select a single site at the top and click the issue name.
  2. In the detail panel pick the model and click Fix with AI. A “Fix started” notice appears.
  3. The model reviews the repository, fixes the root cause in the code, commits the change to a separate branch and opens a PR. You get a notification when the PR is open (usually 1–5 minutes).
  4. Follow the status on the AI fixes card at the bottom of the page.

The Pixel code, the GA4 gtag code and the IndexNow key file can be added to the repository the same way with the Add via PR buttons.

note

Fixes that couldn't start because AI credit ran out wait and start by themselves once the organization has a usable model again.

4. Review and merge

  1. Open the change on your code host with the Open pull request link.
  2. Review the changes; edit on the branch if needed.
  3. Merge the PR and deploy your site as usual.

Opening and merging the PR are recorded as separate entries in the Work ledger; a PR closed without merging doesn't count.

Verification

A fix isn't done when it's written; it's done when the page shows it. After every crawl SEOAsist checks that the issue is no longer listed for the fixed page. Once you have merged the PR and the site is live, start a new crawl; the issue should close.

FAQ

I get “The token has no push access to this repository.”

The token can see the repository but not write to it. On GitHub add this repository and write access for Contents and Pull requests to the fine-grained token; on GitLab your role must be Developer or higher; on Bitbucket the permissions must be Repositories: Write and Pull requests: Write.

The Fix with AI button is disabled. Why?

Hover over it to see why: no site selected, no repository linked, no code host token or no AI provider.

Can I fix things without changing my code?

Yes. For supported issues Auto-fix applies rules right away through the Pixel, the WordPress plugin or the Site API: Auto-fix.

Was this article helpful?
Didn't find what you need?
Describe the problem and our team will reply by email.
Contact us