Skip to content

feat(integrations): accept GitLab issue URLs when linking - #124306

Merged
betegon merged 2 commits into
masterfrom
bt/issue-link-gitlab-urls
Sep 15, 2026
Merged

betegon merged 2 commits into
masterfrom
bt/issue-link-gitlab-urls

Conversation

@betegon

@betegon betegon commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Accept GitLab issue URLs in the existing issue-linking PUT. Resolve the project path and issue number into the identifier already understood by the integration, supporting nested groups and both legacy and /-/issues/ URLs.

Validate the configured installation URL, context path, and group before using the existing linking flow.

Uses the shared URL-linking support merged in #124067. This diff contains only the GitLab implementation and tests.

Validation: 19 GitLab issue integration tests passed, including successful PUTs for modern and legacy URLs in a nested group. Targeted mypy, prek, and diff checks passed.

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Sep 14, 2026
@sentry

sentry Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Sentry Snapshot Testing

Name Added Removed Changed Renamed Unchanged Skipped Status
sentry-frontend
sentry-frontend
- - - - - - ✅ 503 uploaded

Base commit 960cae8bf106c6544ae58f4a9ed7966f5ead6be0 did not produce snapshots to compare against. Did its snapshot job fail? Try rebasing this branch on a commit with a successful snapshot job.

⚙️ sentry-frontend Snapshot Settings

betegon added a commit that referenced this pull request Sep 14, 2026
…24067)

The issue-linking PUT now accepts a full Jira or Jira Server URL in
`externalIssue`, using the selected installation to resolve it before
running the existing linking flow. This lets API callers submit the same
URLs users paste into the issue selector.

Reuses `parse_jira_issue_key()` from #123389, which previously handled
search/autocomplete. The origin calculation is shared with URL
validation while the existing search parser keeps its accepted inputs
and full-text fallback. Direct linking rejects invalid URLs and URLs
from another installation.

This PR contains the shared PUT support and Jira/Jira Server only. Other
providers are split into separate PRs based on this branch. Existing
identifier payloads and neutral reference semantics are preserved;
linking does not resolve the Sentry issue.

Provider follow-ups: GitHub/GitHub Enterprise #124305, GitLab #124306,
Bitbucket #124307, and Azure DevOps #124308.

Validation: 50 shared issue integration and linking endpoint tests
passed, covering identifiers, URLs, malformed URL rejection, and
positive URL parsing cases. Targeted mypy, prek, and diff checks passed.
Base automatically changed from bt/issue-link-urls to master September 14, 2026 19:35
@betegon
betegon force-pushed the bt/issue-link-gitlab-urls branch from 90df5db to 1bada66 Compare September 14, 2026 19:41
@betegon
betegon marked this pull request as ready for review September 14, 2026 19:49
@betegon
betegon requested a review from a team as a code owner September 14, 2026 19:49
@betegon
betegon requested a review from cvxluo September 14, 2026 20:58
@betegon
betegon merged commit 9f1da39 into master Sep 15, 2026
66 of 67 checks passed
@betegon
betegon deleted the bt/issue-link-gitlab-urls branch September 15, 2026 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants