Skip to content

gitlab_handler

appimage_updater.repositories.handlers.gitlab_handler

GitLab repository handler implementation.

GitLabHandler

Handler for GitLab repositories.

metadata property

Get GitLab handler metadata.

can_handle_url(url)

Check if this handler can handle the given URL.

Source code in src/appimage_updater/repositories/handlers/gitlab_handler.py
def can_handle_url(self, url: str) -> bool:
    """Check if this handler can handle the given URL."""
    # Check if URL matches GitLab patterns
    return (
        url.startswith("https://gitlab.com/")
        or url.startswith("http://gitlab.com/")
        or self.metadata.can_handle_url_pattern(url)
    )

create_client(**kwargs)

Create a GitLab repository client.

Source code in src/appimage_updater/repositories/handlers/gitlab_handler.py
def create_client(self, **kwargs: Any) -> RepositoryClient:
    """Create a GitLab repository client."""
    return GitLabRepository(**kwargs)