Connect a GitHub repository to an app so Meridian can build and deploy from your source, and so a push can ship a release. Using GitLab instead? See Connect GitLab.
Connecting a repository
Install the Meridian GitHub app and connect a repository from the GitHub card in your app’s Settings → Integrations (Manage on the repository card in Hosting opens the same page). The card then names the linked repository: “Connected to owner/repo”. Meridian can read the repository’s branches and recent commits and build from any of them. You can create a brand-new Meridian app directly from a GitHub repository.
Finish the GitHub step in the same browser, logged in to Meridian as the user who started the connection. Otherwise nothing is connected, and Meridian asks you to log in and connect again.
You can only connect a repository the Meridian GitHub app has access to on that account (the app’s Repository access setting on GitHub). A public repository outside that access is refused, even though anyone can read it. To connect a repository the app cannot access yet, add it to the app’s repository access on GitHub first.
Deploying from GitHub
With a repository connected:
- Push to deploy: a push to the connected branch triggers a deployment.
- PR previews: a pull request gets its own preview deployment at the PR’s head commit, torn down when the PR closes or after seven days without a push. An app keeps at most two live previews. When a third pull request opens, the oldest preview is removed first. Pushing a new commit to that pull request deploys its preview again. Only pull requests opened from a branch of the connected repository by its owner, an organization member or a collaborator get a preview. Pull requests from forks, and from anyone without write access, never build, because a preview runs the pull request’s code.
A preview cannot reach your app’s secrets. It runs under its own identity, not your app’s, with no access to the values you saved as secrets, so code in a pull request cannot read your production credentials. It gets your plain All environments variables and NODE_ENV=production, and nothing else: no secrets, no values set for one environment only, and none of the managed variables.
- Manual deploys: pick any commit and deploy it from the dashboard.
Several apps of your organization can connect the same repository through the same GitHub account. Every one of them gets each push and pull request and applies its own settings: its own auto-deploy branch and target, its own deployment access and its own previews (two at most per app). When one app skips a push, because of another branch, auto-deploy off or no deployment access, the others still deploy. Closing the pull request removes each app’s preview.
If processing a GitHub event fails, Meridian tries up to three times, waiting 30 seconds before the second attempt and two minutes before the third. A retry does not repeat a completed deployment or rebuild an active preview already at the pull request’s head commit. If a later-received event for the same repository and branch or pull request has already been processed, Meridian ignores the older event so it cannot overwrite that newer state.
If you push while a preview is building, the next build waits for it to finish and uses the latest head commit. Several quick pushes can share that next build.
Meridian does not comment on pull requests. To find a preview’s URL, status and expiry, use the previews_list tool of the Meridian MCP server.
Push deployments and PR previews require deployment access from your subscription, just like manual deploys. They are also blocked when the app is locked because its free trial ended, its organization is suspended, or it has no plan while the organization pays for other apps. On a free trial, they wait until the organization has chosen the plan that starts when the trial ends: see Hosting during the trial. Meridian checks that access before accepting a GitHub deployment and again before starting its build or runtime deployment. Closing a pull request still cleans up its preview even if deployment access has ended.
Meridian always builds the exact commit you selected; a sha that hasn’t been pushed to the connected repository fails during the build rather than silently.
Switching or disconnecting
Configure on the GitHub card shows the linked repository first, with Disconnect, and below it the list of accounts to switch to another repository.
Disconnecting a repository stops push and PR deploys. Existing running revisions are unaffected until the next deploy. The app keeps serving what it last released. Last modified on November 13, 2026