From db9bbf6528e792976e80f870b2013199569a0021 Mon Sep 17 00:00:00 2001 From: "James (d0c_s4vage) Johnson" Date: Thu, 4 Feb 2016 14:04:48 -0600 Subject: [PATCH 1/2] Adding new `ProjectHook` attributes: * `build_events` * `enable_ssl_verification` See the two links below: * https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/projects.md#add-project-hook * https://github.com/pyapi-gitlab/pyapi-gitlab/pull/173 --- gitlab/objects.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gitlab/objects.py b/gitlab/objects.py index f8c102b00..c763791ac 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -851,7 +851,8 @@ class ProjectHook(GitlabObject): requiredUrlAttrs = ['project_id'] requiredCreateAttrs = ['url'] optionalCreateAttrs = ['push_events', 'issues_events', - 'merge_requests_events', 'tag_push_events'] + 'merge_requests_events', 'tag_push_events' + 'build_events', 'enable_ssl_verification'] shortPrintAttr = 'url' From 1f81c2d7a93cc7c719bf8bda627020946aa975d3 Mon Sep 17 00:00:00 2001 From: "James (d0c_s4vage) Johnson" Date: Thu, 4 Feb 2016 15:21:09 -0600 Subject: [PATCH 2/2] Added missing comma --- gitlab/objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab/objects.py b/gitlab/objects.py index c763791ac..9145622dd 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -851,7 +851,7 @@ class ProjectHook(GitlabObject): requiredUrlAttrs = ['project_id'] requiredCreateAttrs = ['url'] optionalCreateAttrs = ['push_events', 'issues_events', - 'merge_requests_events', 'tag_push_events' + 'merge_requests_events', 'tag_push_events', 'build_events', 'enable_ssl_verification'] shortPrintAttr = 'url'