Skip to content

Comments

feat(cli): Add GitLab source support and gh/gl hints#32

Draft
Stanzilla wants to merge 2 commits intogetsentry:mainfrom
Stanzilla:feat/gitlab-url-support
Draft

feat(cli): Add GitLab source support and gh/gl hints#32
Stanzilla wants to merge 2 commits intogetsentry:mainfrom
Stanzilla:feat/gitlab-url-support

Conversation

@Stanzilla
Copy link

Add GitLab repository URL support in skill source parsing and validation, and extend dotagents add with optional source hints so shorthand can still be used explicitly (gh owner/repo and gl owner/repo).

The motivation is to support multiple hosted git providers without silently inferring GitHub for shorthand. The first commit made source hosts explicit and added GitLab support; the second commit introduces opt-in host hinting to preserve shorthand ergonomics where desired.

I considered keeping shorthand permanently disabled and requiring explicit URLs everywhere. That is stricter and simpler, but it removes a workflow many users are already used to. The hint approach keeps host selection explicit while restoring concise commands.

Additional context:

  • add now accepts dotagents add [gh|gl] <source> ...
  • shorthand without a hint remains rejected
  • docs/examples are updated for explicit URLs and hint-based shorthand
  • tests cover GitLab parsing and gh/gl hint expansion behavior

Question for maintainers: do you want to support this hinted shorthand mode long-term, or would you prefer we keep only explicit hosted URLs and remove the hinting path?

Stanzilla and others added 2 commits February 23, 2026 16:40
Support GitLab HTTPS and SSH repository URLs in source parsing,
validation, and clone/auth hint handling, including subgroup paths.

Reject owner/repo shorthand in the add flow so source host is explicit
and no longer inferred as GitHub. This avoids ambiguous behavior now
that hosted providers beyond GitHub are supported.

Update README and docs examples to use explicit hosted URLs and add
coverage for GitLab parsing/validation plus shorthand rejection.

Co-Authored-By: Claude <noreply@anthropic.com>
Allow explicit source hints in add commands so owner/repo shorthand can
be used without implicit host inference.

Support `gh` and `gl` prefixes and expand shorthand to the corresponding
GitHub or GitLab HTTPS URL before source parsing and trust checks.

Update CLI and docs examples to show both explicit URLs and hint-based
shorthand forms.

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Feb 23, 2026

@Stanzilla is attempting to deploy a commit to the Sentry Team on Vercel.

A member of the Team first needs to authorize it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant