Module ogr.services.gitlab.label
Expand source code
# Copyright Contributors to the Packit project.
# SPDX-License-Identifier: MIT
from typing import Union
from ogr.abstract import Issue, IssueLabel, Label, PRLabel, PullRequest
class GitlabLabel(Label):
def __init__(self, name: str, parent: Union[PullRequest, Issue]) -> None:
super().__init__(parent)
self._name = name
def __str__(self) -> str:
return f'GitlabLabel(name="{self.name}")'
@property
def name(self):
return self._name
class GitlabPRLabel(GitlabLabel, PRLabel):
pass
class GitlabIssueLabel(GitlabLabel, IssueLabel):
pass
Classes
class GitlabIssueLabel (name: str, parent: Union[PullRequest, Issue])
-
Represents labels on PRs and issues.
Expand source code
class GitlabIssueLabel(GitlabLabel, IssueLabel): pass
Ancestors
Inherited members
class GitlabLabel (name: str, parent: Union[PullRequest, Issue])
-
Represents labels on PRs and issues.
Expand source code
class GitlabLabel(Label): def __init__(self, name: str, parent: Union[PullRequest, Issue]) -> None: super().__init__(parent) self._name = name def __str__(self) -> str: return f'GitlabLabel(name="{self.name}")' @property def name(self): return self._name
Ancestors
Subclasses
Inherited members
class GitlabPRLabel (name: str, parent: Union[PullRequest, Issue])
-
Represents labels on PRs and issues.
Expand source code
class GitlabPRLabel(GitlabLabel, PRLabel): pass
Ancestors
Inherited members