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.
Connect GitHub to allow AI SRE to read your code, write fixes, and open pull requests.
Go to AI SRE → Integrations 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.
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: writepull_requests: writeIf 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.
For a detailed walkthrough, see Creating pull requests for errors.
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.
We use cookies to authenticate users, improve the product user experience, and for personalized ads. Learn more.