Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gitlab: git source shorthand #7449

Merged

Commits on Feb 8, 2024

  1. Add gitlab: Git source shorthand

    This new shorthand, similar to the existing `github:` shorthand, adds
    support for Gitlab repositories with a notable difference. Gitlab
    projects may be organized into projects and subprojects. An example
    Ruby gem exists at:
    
    https://gitlab.com/gitlab-org/analytics-section/product-analytics/gl-application-sdk-rb
    
    With the new shorthand, a user may install this gem from its repository
    by adding:
    
    ```ruby
    gem "gitlab-sdk", gitlab: "gitlab-org/analytics-section/product-analytics/gl-application-sdk-rb"
    ```
    
    As with the `github:` shorthand, a supplied string with no `/` will be
    interpreted as `example/example`.
    
    Also in keeping with the utility of the `github:` shorthand, the new
    `gitlab:` shorthand also supports Merge Request URLs.
    
    ```ruby
    gem "gitlab-sdk", gitlab: "https://gitlab.com/gitlab-org/analytics-section/product-analytics/gl-application-sdk-rb/-/merge_requests/27"
    ```
    
    The `gitlab:` gem source shortcut is modeled on the existing `github:`
    shortcut, so the new specs mimic the existing examples.
    jgarber623 committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    f439901 View commit details
    Browse the repository at this point in the history