AI SRE GitHub integration

Connect GitHub to allow AI SRE to read your code, write fixes, and open pull requests.

Go to AI SREIntegrations and install the Better Stack GitHub App from the GitHub section. You can install the app into multiple GitHub organizations, and each will appear as a separate connection.

GitHub integration setup

Open PR for errors

This integration powers the entire code‑writing workflow. For AI SRE to create pull requests, the GitHub App needs the following permissions on your repositories:

  • contents: write
  • pull_requests: write

If these permissions are missing, AI SRE prompts you to review the integration settings. Without write access, AI SRE can still read code to help with investigations but cannot propose or submit fixes.

AI SRE creating a Pull request

For a detailed walkthrough, see Creating pull requests for errors.

Linking repositories to error sources

The "Fix with AI" feature knows which repository to clone because you can link each error‑reporting application in Better Stack to a GitHub repository. Configure this link in your application's settings page.