> For the complete documentation index, see [llms.txt](https://blog.rhinoautomator.com/brians-integration-and-automation-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blog.rhinoautomator.com/brians-integration-and-automation-notes/automations/automated-github-gitbook-update-notifications/3.-set-up-automatic-updates.md).

# 3. Set up Automatic Updates

{% hint style="danger" %}
I've migrated the entire blog over to my new website. Please go to [https://rhinoautomator.com](https://rhinoautomator.com/) for more as this will be deleted at some point.
{% endhint %}

Now that you have your own fork of the Rewst documentation repo, you'll want to be sure to keep it up to date with the upstream repo. GitHub won't automatically pull those updates down for you. That's where the GitHub App Pull comes in.

{% stepper %}
{% step %}

#### Install Pull

<figure><img src="https://965055951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzwHskk220tGpzlbz7txC%2Fuploads%2FbUi5lEoCSjJdkksnafEc%2FBQnz6XgpZc.png?alt=media&amp;token=503b0dbc-265b-4b91-91f5-01a70fefd2f5" alt=""><figcaption><p>Pull GitHub App page</p></figcaption></figure>

It'll prompt you to sign in to GitHub again and if your GitHub user is a member of an organization, you'll have the option of installing to your user account or (if you are an admin of the organization) to the organization.
{% endstep %}

{% step %}

#### Select "All repositories" or "Only select repositories"

Depending on your GitHub usage, you may have projects that you only want to manually update. This will determine how you configure Pull.
{% endstep %}

{% step %}

#### Click Install

{% endstep %}

{% step %}

#### Create pull configuration file

The default for Pull is to create a pull request that you manually need to merge. For something like staying up to date on changes to the upstream repo, you'll want to tweak this so that changes automatically merge to your repo.

On your fork of the docs site, click "Add file" and then "+ Create new file"

<figure><img src="https://965055951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzwHskk220tGpzlbz7txC%2Fuploads%2FLf6ESvrFIxTH2wQ36x4a%2FcWRzxmNwJd.png?alt=media&amp;token=14ee2002-9cdb-4218-a202-892dd154987b" alt=""><figcaption></figcaption></figure>

In the "Name your file..." window type `.github/pull.yml` for the file's name.

{% hint style="info" %}
Inclusion of the `.github/` is important. This will create a folder called `.github` that the Pull GitHub App looks to for any update settings. Depending on the project and your use of the repository, not placing the file here could cause application deployment issues since this folder will be bypassed during Build and Deploy jobs.
{% endhint %}

The contents of that file should be:

```
version: "1"
rules:
  - base: main
    upstream: RewstApp:main
    mergeMethod: merge
```

The mergeMethod is what instructs Pull to automatically merge changes from the upstream repo into yours.

Commit those changes to your main branch.

Pull will now automatically update your branch of the Rewst docs when the Rewst team publishes new updates!
{% endstep %}
{% endstepper %}
