Skip to content

GitHub integration

OKForest reads each tree from its GitHub repository whenever it’s asked, and never writes to it. How it reads depends on whether the repository is public.

A public repository needs nothing installed: add the tree with its GitHub address. OKForest first confirms with GitHub that the repository is public, then reads it. Such a tree is read-only in OKForest.

Private repositories: the OKForest GitHub App

Section titled “Private repositories: the OKForest GitHub App”

A private repository is read through the OKForest GitHub App, installed on your GitHub organization or account:

  • It reads, and writes only where you let it. The App asks GitHub for access to repository contents, and nothing else: it can’t change your issues or settings. OKForest writes to a tree’s repository only once an account admin has turned that tree’s editing on, and then only the changes the tree’s editors apply: one commit each, signed by GitHub as the App, to the branch the tree follows.
  • New permissions wait for you. When the App asks for a new permission, such as changing repository contents, GitHub asks someone who manages each installation to accept it, on the installation’s settings page. Until they do, the installation keeps the permissions it had, and OKForest can’t change its trees.
  • Only the repositories you choose. When you install it, GitHub asks which repositories it may read: all of them, or only those you select.
  • One repository at a time. Each read uses a short-lived token from GitHub for that tree’s repository alone.
  • Your account’s own. A tree is read through the installation connected to its OKForest account, never through another account’s.
  • Told of pushes. GitHub tells OKForest when someone pushes to one of those repositories. OKForest uses only which repository and which branch or tag moved, to know which trees to read again, and keeps nothing else from the notice.

OKForest reads each new commit of a tree once, in the background, then serves its pages, search, and checks from what it read. Until it has, it keeps serving the commit before.

  • Through the App: a push to the tree’s branch, or one that moves the tag it follows, shows up shortly after it’s pushed.
  • Public repositories send OKForest no notice of pushes. It looks for a new commit when someone opens the tree, at most every five minutes, and once a day in any case.
  • A tree pinned to a commit never changes.

An account admin connects GitHub once per GitHub organization or account:

  1. In OKForest, go to Settings → GitHub and choose Connect GitHub.
  2. On GitHub, pick the organization or account, and choose the repositories the App may read. Installing an App on an organization takes one of its owners; GitHub lets others ask an owner to approve it.
  3. GitHub sends you back to OKForest, which lists the connection. Then Add a tree from any of those repositories.

To change which repositories the App may read later, choose Choose repositories on GitHub beside the connection.

A GitHub organization or account connects to one OKForest account at a time. To move it to another:

  1. In the account it’s connected to, go to Settings → GitHub and choose Disconnect… beside it. OKForest refuses while any of that account’s trees read through it; remove those trees first.
  2. In the other account, go to Settings → GitHub, choose Connect GitHub, and pick the same organization or account on GitHub.

Nothing changes on GitHub when you disconnect: the App stays installed.

  1. In OKForest, disconnect it, as above.
  2. On GitHub, uninstall the App from the organization’s or account’s installed GitHub Apps; OKForest links to that page.

Uninstalling it, or taking a tree’s repository out of the App’s selection, stops OKForest reading that tree: the MCP server names it as unreadable rather than leaving it out silently. Deleting an OKForest account leaves the App installed on GitHub until you uninstall it.

See Access and security for who reads which tree once it’s added.