AI SRE GitHub integration

The GitHub integration allows AI SRE to read your code, write fixes, and open pull requests.

Connect GitHub by navigating to AI SREIntegrations and installing the Better Stack GitHub App from the GitHub section. You can install the app into multiple GitHub organizations; 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 be able 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 will prompt you to review the integration settings. Without write access, AI SRE can still read code to help with investigations but will not be able to 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 each error-reporting application in Better Stack can be linked to a GitHub repository. You can configure this link in your application's settings page.