Manage Sentry source code management integrations with sentry_organization_repository
mainThe sentry_organization_repository resource allows you to manage Sentry's integrations with source code management (SCM) systems like GitHub, GitLab, Bitbucket, and Azure DevOps (VSTS). This enables Sentry to link specific repositories to your Sentry organization.
Supported Integration Types
githubgithub_enterprisegitlabvsts(Azure DevOps)bitbucketbitbucket_server
# GitHub Example
data "sentry_organization_integration" "github" {
organization = "my-organization"
provider_key = "github"
name = "my-github-organization"
}
resource "sentry_organization_repository" "github" {
organization = "my-organization"
integration_type = "github"
integration_id = data.sentry_organization_integration.github.id
identifier = "my-github-organization/my-github-repo"
}