• Bob Van Landuyt's avatar
    Detect user based on key, username or id · 53511f36
    Bob Van Landuyt authored
    This allows gitlab-shell to be called with an argument of the format
    `key-123` or `username-name`.
    
    When called in this way, `gitlab-shell` will call the GitLab internal
    API. If the API responds with user information, it will print a
    welcome message including the username.
    
    If the API responds with a successful but empty response, gitlab-shell
    will print a welcome message for an anonymous user.
    
    If the API response includes an error message in JSON, this message
    will be printed to stderr.
    
    If the API call fails, an error message including the status code will
    be printed to stderr.
    53511f36
gitlab_shell_gitlab_shell_spec.rb 6.08 KB