feat(cli): Add GitLab source support and gh/gl hints#32
Draft
Stanzilla wants to merge 2 commits intogetsentry:mainfrom
Draft
feat(cli): Add GitLab source support and gh/gl hints#32Stanzilla wants to merge 2 commits intogetsentry:mainfrom
Stanzilla wants to merge 2 commits intogetsentry:mainfrom
Conversation
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>
|
@Stanzilla is attempting to deploy a commit to the Sentry Team on Vercel. A member of the Team first needs to authorize it. |
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.
Add GitLab repository URL support in skill source parsing and validation, and extend
dotagents addwith optional source hints so shorthand can still be used explicitly (gh owner/repoandgl 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:
addnow acceptsdotagents add [gh|gl] <source> ...gh/glhint expansion behaviorQuestion 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?