Skip to content

Add SCM integrations from the CLI #1519

Open

Description

@sentry-junior

User feedback asks to set up SCM integrations (GitHub, GitLab, Bitbucket, Azure DevOps, etc.) with AI, i.e. from the CLI (feedback). The CLI has no integrations command; repo, code-mappings, and issue linking assume one is already installed.

Sentry already has an experimental API-driven install flow: POST /api/0/organizations/{org}/pipeline/integration_pipeline/ (action: initialize, then step through) — organization_pipeline.py.

Limitations / edge cases

  • Pipeline state lives in the Django session; bearer-token CLI requests have no session to persist it across steps.
  • OAuth steps return an oauthUrl; the callback is relayed to a browser window via postMessage, not to a CLI.
  • GitHub installs happen on github.com and come back with installation_id as initial data.
  • Endpoint is EXPERIMENTAL; POST needs org:write, org:admin, or org:integrations.
  • Pipeline is bound to the initiating user; providers behind feature flags return 404.
  • Providers without allow_multiple reject a second install.

via @sergical.

--

View Junior Session [Sentry]

Activity

  1. linear-code commented on Oct 16, 2026

    @linear-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions