diff options
author | Nejc Habjan <nejc.habjan@siemens.com> | 2022-05-07 22:50:11 +0200 |
---|---|---|
committer | John Villalovos <john@sodarock.com> | 2022-05-08 09:47:13 -0700 |
commit | 6b47c26d053fe352d68eb22a1eaf4b9a3c1c93e7 (patch) | |
tree | 4728804ac977fa74888beb47ef8759c7744d9a55 /gitlab/v4/objects/hooks.py | |
parent | 2373a4f13ee4e5279a424416cdf46782a5627067 (diff) | |
download | gitlab-6b47c26d053fe352d68eb22a1eaf4b9a3c1c93e7.tar.gz |
feat: display human-readable attribute in `repr()` if present
Diffstat (limited to 'gitlab/v4/objects/hooks.py')
-rw-r--r-- | gitlab/v4/objects/hooks.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gitlab/v4/objects/hooks.py b/gitlab/v4/objects/hooks.py index 0b0092e..f37d514 100644 --- a/gitlab/v4/objects/hooks.py +++ b/gitlab/v4/objects/hooks.py @@ -15,7 +15,7 @@ __all__ = [ class Hook(ObjectDeleteMixin, RESTObject): _url = "/hooks" - _short_print_attr = "url" + _repr_attr = "url" class HookManager(NoUpdateMixin, RESTManager): @@ -28,7 +28,7 @@ class HookManager(NoUpdateMixin, RESTManager): class ProjectHook(SaveMixin, ObjectDeleteMixin, RESTObject): - _short_print_attr = "url" + _repr_attr = "url" class ProjectHookManager(CRUDMixin, RESTManager): @@ -75,7 +75,7 @@ class ProjectHookManager(CRUDMixin, RESTManager): class GroupHook(SaveMixin, ObjectDeleteMixin, RESTObject): - _short_print_attr = "url" + _repr_attr = "url" class GroupHookManager(CRUDMixin, RESTManager): |