Skip to content

feat(cursor): Add GitLab support to Cursor coding agent#2

Open
dnplkndll wants to merge 2 commits into26.1.0-gitlab-seerfrom
26.1.0-cursor-gitlab
Open

feat(cursor): Add GitLab support to Cursor coding agent#2
dnplkndll wants to merge 2 commits into26.1.0-gitlab-seerfrom
26.1.0-cursor-gitlab

Conversation

@dnplkndll
Copy link

Summary

  • Build repo URL from provider type (integrations:gitlab → GitLab instance URL, github/fallback → GitHub) instead of hardcoding github.com
  • Accept GitLab webhook callbacks (any domain containing "gitlab") with relaxed regex for nested group paths (e.g., kencove/operations/odoo)
  • Set openAsCursorGithubApp=False for GitLab repos so Cursor uses its own GitLab credentials instead of the GitHub App

Test plan

  • pytest tests/sentry/integrations/cursor/test_client.py -v — new tests for GitLab, self-hosted GitLab, and GitHub provider URL building
  • pytest tests/sentry/integrations/cursor/test_webhook.py -v — new tests for GitLab URL acceptance, nested groups, self-hosted GitLab, and no-scheme GitLab URLs
  • Manual: deploy, trigger Seer autofix on issue linked to a GitLab repo, verify launch request sends correct GitLab URL
  • Check sentry-web logs for cursor_webhook.status_change entries with GitLab repo URLs being accepted

🤖 Generated with Claude Code

Build repo URL from provider (GitHub/GitLab) instead of hardcoding
GitHub. Accept GitLab webhook callbacks with nested group paths.
Set openAsCursorGithubApp=False for GitLab repos so Cursor uses its
own GitLab credentials.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link

coderabbitai bot commented Feb 18, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 26.1.0-cursor-gitlab

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

…gcloud builds submit

- WIF provider: github-wlif/providers/github-oidc (was nonexistent github-pool/providers/github-provider)
- Service account: github-actions-seer@ (was nonexistent github-actions@)
- Branch trigger: 26.1.0-* (was master, which never has the workflow file)
- Use gcloud builds submit instead of local docker build (Sentry needs E2_HIGHCPU_32 + 200GB)
- Dockerfile: self-hosted/Dockerfile.kencove via cloudbuild.yaml
- Add .gcloudignore to exclude .git, node_modules, tests from source upload

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant