GITLAB_URL should take default https://gitlab.com instead of error (#14638)

The fix #14221 has broken default gitlab url which is forcing the users
to specify GITLAB_URL for default one. With this fix if GITLAB_URL is
not set, the default gitlab url will be taken.

  - **Description:** Add the GITHUB URL instead of None
  - **Issue:** the issue #14221 has broken the default github URL 
  - **Dependencies:** None
  - **Tag maintainer:** @hwchase17 
  - **Twitter handle:** manjunath_shiva
pull/15102/head^2
Manjunath Janardhan 9 months ago committed by GitHub
parent dcf047c48f
commit 7a0feba9f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -39,7 +39,7 @@ class GitLabAPIWrapper(BaseModel):
"""Validate that api key and python package exists in environment.""" """Validate that api key and python package exists in environment."""
gitlab_url = get_from_dict_or_env( gitlab_url = get_from_dict_or_env(
values, "gitlab_url", "GITLAB_URL", default=None values, "gitlab_url", "GITLAB_URL", default="https://gitlab.com"
) )
gitlab_repository = get_from_dict_or_env( gitlab_repository = get_from_dict_or_env(
values, "gitlab_repository", "GITLAB_REPOSITORY" values, "gitlab_repository", "GITLAB_REPOSITORY"

Loading…
Cancel
Save