Help center / GitHub and Vercel
Help center
GitHub and Vercel
Ruvma changes sites built from code through its GitHub App. It makes each change in a pull request, checks it on the preview your host builds, and merges it once someone on your team approves.
What you need
- The site's code in a GitHub repository. GitLab isn't supported yet.
- A site built with Next.js, Nuxt or Astro. Ruvma reads the framework from the
package.jsonat the root of the repository, and doesn't link a repository without one there. - A host that builds a preview of each pull request through its GitHub integration, such as Vercel or Netlify. Ruvma checks every change on that preview.
- Someone who can install GitHub apps on the account that owns the repository.
Ruvma changes the text and links written in the code, and the paths and alt text of images already there: pages, components, Markdown or MDX content and translation files. It can't add an image the client sends to a Git site; that one stays with you. Text that comes from a CMS isn't in the code, and Ruvma tells you when a change can't be made there.
Install the GitHub App
- On the client's Connect the site page, select Install the GitHub App. Owners and admins can also install it in Settings, under Connections.
- On GitHub, pick the account, then the repositories Ruvma may reach: the site's, or all of them.
- GitHub sends you back to Ruvma. If your GitHub organization lets only its owners approve apps, GitHub asks them first, and you carry on once they have.
Ruvma reaches only the repositories you picked. It writes only to branches of its own, and merges into your default branch only what your team approves. You can install the app on more than one GitHub account, and change its repositories on GitHub at any time, from Configure in Settings, under Connections.
Link the repository
Back on Connect the site, pick the site's repository and select Connect. A repository that isn't in the list isn't in the app's installation yet: add it on GitHub, from the link under the list.
To use another repository later, select Change repository on the client's site card. Its pull requests and previews come from the new one from then on.
Previews on Vercel
Vercel keeps a project's previews behind a Vercel login, Vercel Authentication, unless the project turned it off. To let Ruvma open them, give it the project's bypass secret:
- In Vercel, open the project that builds the site, then Settings and Deployment Protection.
- Under Protection Bypass for Automation, add a secret for Ruvma.
- In Ruvma, select Add a bypass secret once the repository is linked, or Preview access on the client's site card, and paste the secret.
Ruvma tries the secret on the site's latest preview before it saves it, stores it encrypted, and sends it only with its checks of the site, to addresses at vercel.app. It opens the live site with it too, when that's at a vercel.app address behind the same login.
Without the secret, Ruvma checks each change in the code instead of on the page, and the checks say so. You can add it later: a check that met Vercel's login offers to.
What the pull request holds
Ruvma works on a branch of its own, named after the request, such as ruvma/req-12, made from your default branch. It opens one pull request for the request, titled with its number and what it changes, such as REQ-12: Update the opening hours. Its description says nothing is merged until your agency approves it in Ruvma.
- Ruvma's worker reads a copy of the repository and can't push to it. It sends Ruvma the files it changed; Ruvma checks them and commits them to the branch itself.
- A content change adds no imports, environment variables, network calls, scripts or raw HTML: Ruvma refuses a file that does.
- If the branch ever holds a change Ruvma didn't make, Ruvma stops the request and merges nothing.
On the review screen you see the code changes, file by file, with a link to the pull request.
Approving and merging
When you approve, Ruvma merges the pull request at the commit it checked. Then it waits for the site to deploy, checks the live page, and deletes its branch. See Reviewing and publishing.
- If someone changed the same files on the default branch since the preview, Ruvma doesn't merge over their work: it makes the change again on the newest code, for you to approve.
- Cancelling a request deletes its branch, which closes the pull request.
- Ruvma doesn't undo a merged change. To take one back, revert its pull request on GitHub.