summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects/hooks.py
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-11-05 21:01:58 +0100
committerJohn Villalovos <john@sodarock.com>2021-11-08 14:11:40 -0800
commitc0d881064f7c90f6a510db483990776ceb17b9bd (patch)
treebbe635558a2bfb48fd64f24f48eea1c5b093a029 /gitlab/v4/objects/hooks.py
parent472b300154c5e59289d83f0b34d24bc52eb9b6da (diff)
downloadgitlab-c0d881064f7c90f6a510db483990776ceb17b9bd.tar.gz
refactor: use new-style formatting for named placeholders
Diffstat (limited to 'gitlab/v4/objects/hooks.py')
-rw-r--r--gitlab/v4/objects/hooks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/v4/objects/hooks.py b/gitlab/v4/objects/hooks.py
index 428fd76..00dcfee 100644
--- a/gitlab/v4/objects/hooks.py
+++ b/gitlab/v4/objects/hooks.py
@@ -27,7 +27,7 @@ class ProjectHook(SaveMixin, ObjectDeleteMixin, RESTObject):
class ProjectHookManager(CRUDMixin, RESTManager):
- _path = "/projects/%(project_id)s/hooks"
+ _path = "/projects/{project_id}/hooks"
_obj_cls = ProjectHook
_from_parent_attrs = {"project_id": "id"}
_create_attrs = RequiredOptional(
@@ -69,7 +69,7 @@ class GroupHook(SaveMixin, ObjectDeleteMixin, RESTObject):
class GroupHookManager(CRUDMixin, RESTManager):
- _path = "/groups/%(group_id)s/hooks"
+ _path = "/groups/{group_id}/hooks"
_obj_cls = GroupHook
_from_parent_attrs = {"group_id": "id"}
_create_attrs = RequiredOptional(