summaryrefslogtreecommitdiff
path: root/gitlab/objects.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2016-11-02 14:45:37 +0100
committerGauvain Pocentek <gauvain@pocentek.net>2016-11-02 14:45:43 +0100
commitcd5f84967444cc07cf9e7bdfd63324ad4890b370 (patch)
tree05e5744a83c79db68cd5ce0c4e209e6711e7020e /gitlab/objects.py
parentca014f8c3e4877a4cc1ae04e1302fb57d39f47c4 (diff)
downloadgitlab-cd5f84967444cc07cf9e7bdfd63324ad4890b370.tar.gz
ProjectHook: support the token attribute
Fix #170
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r--gitlab/objects.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py
index e818364..23887c4 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -1288,7 +1288,7 @@ class ProjectHook(GitlabObject):
requiredCreateAttrs = ['url']
optionalCreateAttrs = ['push_events', 'issues_events', 'note_events',
'merge_requests_events', 'tag_push_events',
- 'build_events', 'enable_ssl_verification']
+ 'build_events', 'enable_ssl_verification', 'token']
shortPrintAttr = 'url'