Configure GitHub for pull request ingestion
Ingest merged pull requests as a source-control change source
Connect GitHub as a source-control change source so the Deploy Change Investigator ingests the pull requests merged into your deploy branch and links them to builds and deployments.
Before you begin
Deploy Change Investigator setup: Build and deploy webhook integrations created in AI SRE. Go to Deploy Change Investigator to set up the webhook endpoints.
A GitHub connector: A Harness GitHub connector configured in your project. Go to Connect to a code repo to create one.
Connector permissions: Account, organization, or project Admin, or a role with Manage Connectors, to create a connector. Go to the permissions reference to review required permissions.
How GitHub pull request ingestion works
The Deploy Change Investigator ingests GitHub pull requests by polling, not through webhooks. You do not paste a webhook URL into GitHub. Instead, AI SRE uses your GitHub connector to periodically query the GitHub API for pull requests that have merged into your deploy branch.
Mechanism: AI SRE polls the GitHub REST API for closed and merged pull requests on the tracked repository.
Frequency: The ingestion job runs approximately once per hour.
Lookback: On first activation, the job backfills merged pull requests from the previous 60 days when it is created automatically from a build webhook, or 90 days when you create it manually. It then syncs incrementally.
Stored data: Each pull request is stored with its branch, PR number, commit SHA, title, merge timestamp, and author.
Supported GitHub platforms
GitHub.com
Yes
GitHub Enterprise Cloud
Yes
GitHub Enterprise Server
Yes
Authentication uses your GitHub connector's credentials, either a personal access token (PAT) or a GitHub App. Go to GitHub App support to configure a GitHub App connector, or go to the GitHub connector settings reference to review connector fields.
Select the connector for AI SRE
Map the GitHub source to a connector so AI SRE knows which credentials to use.
In the left navigation, click Project Settings (gear icon).
Under Project-level resources, select Third Party Integrations (AI SRE).
On the Third-Party Integrations for AI SRE page, find the Github row.
Select your GitHub connector from the dropdown. The scope tag (for example, PROJECT) shows where the connector is defined.

Create a pull request ingestion
Create the ingestion job manually if you do not want to wait for automatic creation from a build webhook:
In the AI SRE left navigation, go to Integrations.
Open the PR Ingestions tab.
Click + New PR Ingestion.
In the Create New PR Ingestion dialog, under Select Git Provider, choose GitHub.
Enter the Repository URL of the repository to track.
Click Create.

Verify pull request ingestion
Confirm the ingestion job is running and syncing pull requests:
In the AI SRE left navigation, go to PR Ingestions (tab next to Integrations).
Confirm an ingestion job exists for your repository with:
Repository name
Branch being tracked (usually
main)Last sync status and timestamp
After the next hourly sync, confirm merged pull requests appear against your deployments in Change Management.
Troubleshooting
Next steps
Go to Deploy Change Investigator for the complete setup guide.
Go to Configure Bitbucket to add Bitbucket as a source-control change source.
Go to AI Agent RCA to learn how change detection works during incidents.
Last updated
Was this helpful?