# Changes from pull requests

A hosted site's pages live in Rimfe. When code changes, Rimfe checks the pages against the pull request and suggests the fix as a **change** on the site. You review it like any other draft and publish it once the code ships.

## Link code repositories

Open the site's **Settings**, then **Site**, and choose **Link repository** under **Code repositories**. Only owners and admins can link a repository. Pick a repository and, if only part of it matters to these docs, list its **Code folders**, one per line, such as `packages/api/**`. Leave them empty to check every change.

<img src="/images/platform/settings.webp" alt="Site settings with the linked code repository" width={900} height={563} />

A site can link up to 20 repositories, and one repository can link to several sites. Linking a site does not change how the repository's own docs are reviewed.

## What happens on a pull request

```mermaid title="From pull request to published page"
flowchart LR
  PR[Pull request] --> Review[Review against the site's pages]
  Review -->|A page is now wrong| Change[Change on the site]
  Change --> State{Pull request}
  State -->|Merged| Ready[Ready to publish]
  State -->|Closed| Discard[Change discarded]
  Ready --> Publish[Publish]
```

1. Rimfe reviews the pull request against the site's pages, next to any other docs the repository has. The check on the pull request is named after the site, for example `Rimfe (Acme Docs)`.
2. When a page is now wrong, Rimfe opens a change on the site and the pull request comment links to it: **Review the docs change in Rimfe**.
3. New commits on the pull request update the change. Pages you edited yourself keep your edits.
4. When the pull request merges, the change is ready to publish and everyone who can publish the site is told. When it closes without merging, the change is discarded.

## Review and publish

Open the site's **Content** tab. **Changes from pull requests** lists each open change with its pull request and status:

<img src="/images/platform/content.webp" alt="Content tab with the site's pages" width={900} height={563} />

| Status | Meaning |
| --- | --- |
| **Waiting for merge** | The pull request is still open. |
| **Held until release** | The pull request merged, but your release settings hold its docs until the release ships. |
| **Ready to publish** | Publish it like any other draft. |

Open a change to see each page as readers will see it, with the reason Rimfe suggested it. Leave out any page you don't want, then [publish](https://docs.rimfe.com/platform/publishing-and-builds).

Docs sometimes need to go out before the code. Site managers can choose **Publish now** on a change that is still waiting.

## Private sites

A private site's text never appears in the pull request comment. The comment links to the change in Rimfe instead.
