'Get webhook JSON data to post to the API'

def get_webhook_data(self, project, integration):

    return json.dumps({'name': 'web', 'active': True, 'config': {'url': 'https://{domain}{path}'.format(domain=settings.PRODUCTION_DOMAIN, path=reverse('api_webhook', kwargs={'project_slug': project.slug, 'integration_pk': integration.pk})), 'content_type': 'json'}, 'events': ['push', 'pull_request']})
