GitHub

The GitHub integration allows previews of issues and pull requests in GitHub within Outline. For example, hovering over a GitHub url will show a preview of the issue status at that url.

Setup

  1. Register a new “GitHub App”, you’ll need to fill out the following fields:

    1. Name – “Outline” might make sense

    2. URL – It is advisable to choose the address of your Outline installation

    3. Callback URL – Use <yourdomain.com>/api/github.callback

    4. “Request user authorization (OAuth) during installation” – Make sure this option is checked

    5. “Webhooks” – This option can be disabled

  1. On “Permissions & events” add the following required access:

    1. Repository → Discussions: Read-only

    2. Repository → Issues: Read-only

    3. Repository → Projects: Read-only

    4. Repository → Pull Requests: Read-only

    5. Organization → Members: Read-only

    6. Organization → Projects: Read-only

  2. On the GitHub app settings make a note of the last part of the “Public link” field, this is the “app name”.

  3. Navigate to “Credentials” and generate a client secret and make a note of the value.

  4. Still on the GitHub “Credentials” settings under “Key pairs” generate a private key, the file will be saved to your machine.

  5. Base64 encode the private key using the following command, where <infile> is the path to the private key that was just downloaded. Make a note of the value in the out file.

    openssl base64 -in <infile> -out <outfile>

  6. Add the configuration to the Outline environment, using the following variable names:

    GITHUB_CLIENT_ID=
    GITHUB_CLIENT_SECRET=
    GITHUB_APP_NAME=
    GITHUB_APP_ID=
    GITHUB_APP_PRIVATE_KEY=
  1. Restart the server, you should see “GitHub” available under Settings → Integrations