Skip to content
Cognolo

Cognolo is in early access, and its hosted service isn’t open yet. This guide describes how the dashboard and the runtime are built to work. Some parts, such as the GitHub App and the code reader, have so far been tried only on sample code. Ask about early access

Guide › Your app, page by page › Setup and history

Connect GitHub

Approve the GitHub App and choose how pull requests get opened.

Cognolo reads your repository through a GitHub App. You approve it on GitHub, and you choose what it may do.

GitHub is connected: the repositories Cognolo may read, each with its app or Add an app.GitHub is connected: the repositories Cognolo may read, each with its app or Add an app.
Cognolo’s own test app, Sharengeti Business, with sample data.

Two ways to allow it

Cognolo opens pull requests (default)
Cognolo reads your code and opens pull requests itself, from branches that start with cognolo/. It can’t touch any other branch and it can’t merge.
Read-only
Cognolo only reads. A workflow in your repo, cognolo-propose.yml, opens the pull request. Someone runs it by hand after you send a change.

Either way, the App also writes a check on your pull requests (the “Checks” permission). That is a result on a commit, never a change to your code. See How the assistant is kept in line.

To change this later, reconnect GitHub. The Setup page shows which one is on.

Only you can approve it

If an AI helper is setting things up, it can ask for GitHub to be connected and give you a link. It can’t approve for you. Open the link, choose the access level, and choose Approve access. You can remove the access at any time in GitHub.

Using read-only

  1. Add the workflow shown on the Setup page to your repository.
  2. In GitHub, allow Actions to create pull requests (Settings, Actions, General).
  3. After you send a change, run the command below.
  4. Checks on the new pull request don’t start by themselves. Push an empty commit, or close and reopen it.
gh workflow run cognolo-propose.yml

What Cognolo learns from GitHub

GitHub tells Cognolo when a pull request is merged, when code is pushed, and when a pull request changes. Cognolo uses this to:

  • Mark a change Merged and record the commit. Only a pull request Cognolo opened, from a branch in your own repository, counts. A pull request from a fork never does.
  • Spot that the code changed, so Today can say it could affect people using it now.
  • Run its check on pull requests, and again when someone pushes to Cognolo’s branch.
  • Find out which of your other branches hold a merged change. For this Cognolo asks GitHub whether the branch contains the commit. It only reads, and it only asks about branches your environments follow.
  • Read your code again after a push to the branch the app follows (at most once every ten minutes), so the Map and Safety check stay current.
  • Keep that branch’s commits for History. Once a day it also asks GitHub for the branch’s recent commits, back to the one it last read, so a push it missed isn’t lost.

If you remove the App, none of this arrives, and the Setup page says GitHub is not connected.

Other settings

  • Pull requests go to — the branch they’re opened against.
  • Ask these reviewers — people or teams, for example @acme/devs.
  • Never read — paths to skip. .env files, keys and certificates are always skipped.