diff options
-rw-r--r-- | gitlab/client.py | 1 | ||||
-rw-r--r-- | gitlab/v4/objects/files.py | 2 | ||||
-rw-r--r-- | gitlab/v4/objects/merge_request_approvals.py | 2 | ||||
-rw-r--r-- | pyproject.toml | 1 |
4 files changed, 5 insertions, 1 deletions
diff --git a/gitlab/client.py b/gitlab/client.py index a9bd48f..ffb92e6 100644 --- a/gitlab/client.py +++ b/gitlab/client.py @@ -123,6 +123,7 @@ class Gitlab: objects = gitlab.v4.objects self._objects = objects + self.user: Optional[objects.CurrentUser] = None self.broadcastmessages = objects.BroadcastMessageManager(self) """See :class:`~gitlab.v4.objects.BroadcastMessageManager`""" diff --git a/gitlab/v4/objects/files.py b/gitlab/v4/objects/files.py index 894195c..aa86704 100644 --- a/gitlab/v4/objects/files.py +++ b/gitlab/v4/objects/files.py @@ -26,6 +26,8 @@ __all__ = [ class ProjectFile(SaveMixin, ObjectDeleteMixin, RESTObject): _id_attr = "file_path" _repr_attr = "file_path" + branch: str + commit_message: str file_path: str manager: "ProjectFileManager" diff --git a/gitlab/v4/objects/merge_request_approvals.py b/gitlab/v4/objects/merge_request_approvals.py index 36224d1..a22bd2b 100644 --- a/gitlab/v4/objects/merge_request_approvals.py +++ b/gitlab/v4/objects/merge_request_approvals.py @@ -168,6 +168,8 @@ class ProjectMergeRequestApprovalRule(SaveMixin, ObjectDeleteMixin, RESTObject): _id_attr = "approval_rule_id" _repr_attr = "approval_rule" id: int + approval_rule_id: int + merge_request_iid: int @exc.on_http_error(exc.GitlabUpdateError) def save(self, **kwargs: Any) -> None: diff --git a/pyproject.toml b/pyproject.toml index f2e9f09..1be011b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,6 @@ max-line-length = 88 disable = [ "arguments-differ", "arguments-renamed", - "attribute-defined-outside-init", "broad-except", "cyclic-import", "duplicate-code", |