summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2022-07-29 10:09:25 +0200
committerGitHub <noreply@github.com>2022-07-29 10:09:25 +0200
commit7a53c6950bb7df90e2a3f4e6d0436cb5d06c3b46 (patch)
tree8248e3edf184525d07927788bb058368666a771a /gitlab/v4/objects
parent8ba97aa459420ec5ae824d9299d6564656841559 (diff)
parentb46b3791707ac76d501d6b7b829d1370925fd614 (diff)
downloadgitlab-7a53c6950bb7df90e2a3f4e6d0436cb5d06c3b46.tar.gz
Merge pull request #2194 from python-gitlab/jlvillal/update-gitlab
test(functional): bump GitLab docker image to 15.2.0-ee.0
Diffstat (limited to 'gitlab/v4/objects')
-rw-r--r--gitlab/v4/objects/topics.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gitlab/v4/objects/topics.py b/gitlab/v4/objects/topics.py
index 57b104e..143759d 100644
--- a/gitlab/v4/objects/topics.py
+++ b/gitlab/v4/objects/topics.py
@@ -19,7 +19,10 @@ class TopicManager(CRUDMixin, RESTManager):
_path = "/topics"
_obj_cls = Topic
_create_attrs = RequiredOptional(
- required=("name",), optional=("avatar", "description")
+ # NOTE: The `title` field was added and is required in GitLab 15.0 or
+ # newer. But not present before that.
+ required=("name",),
+ optional=("avatar", "description", "title"),
)
_update_attrs = RequiredOptional(optional=("avatar", "description", "name"))
_types = {"avatar": types.ImageAttribute}