Update GitLab Webhook creating to enable merge request events
@@ -255,7 +255,7 @@ class GitLabService(Service):
# Optional
'issues_events': False,
- 'merge_requests_events': False,
+ 'merge_requests_events': True,
'note_events': False,
'job_events': False,
'pipeline_events': False,
@@ -291,6 +291,13 @@ class GitLabService(Service):
data=data,
headers={'content-type': 'application/json'},
)
+ print('{url}/api/v4/projects/{repo_id}/hooks'.format(
+ url=self.adapter.provider_base_url,
+ repo_id=repo_id,
+ ))
+ print(dir(resp), 'yesssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss')
+ print(resp.status_code, 'yesssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss')
+ print(resp.content, 'yesssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss')
if resp.status_code == 201:
integration.provider_data = resp.json()
integration.save()
