feat(integrations): accept GitLab issue URLs when linking - #124306
Merged
Merged
Conversation
Contributor
Sentry Snapshot Testing
Base commit |
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.
betegon
force-pushed
the
bt/issue-link-gitlab-urls
branch
from
September 14, 2026 19:41
90df5db to
1bada66
Compare
betegon
marked this pull request as ready for review
September 14, 2026 19:49
cvxluo
approved these changes
Sep 14, 2026
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.