mirror of
https://github.com/ansible/awx.git
synced 2026-02-05 11:34:43 -03:30
Add support for receiving webhooks from Bitbucket Data Center, and add support for posting build statuses back Note that this is very explicitly only for Bitbucket Data Center. The entire webhook format and API is entirely different for Bitbucket Cloud.
12 lines
548 B
Python
12 lines
548 B
Python
from django.urls import re_path
|
|
|
|
from awx.api.views.webhooks import WebhookKeyView, GithubWebhookReceiver, GitlabWebhookReceiver, BitbucketDcWebhookReceiver
|
|
|
|
|
|
urlpatterns = [
|
|
re_path(r'^webhook_key/$', WebhookKeyView.as_view(), name='webhook_key'),
|
|
re_path(r'^github/$', GithubWebhookReceiver.as_view(), name='webhook_receiver_github'),
|
|
re_path(r'^gitlab/$', GitlabWebhookReceiver.as_view(), name='webhook_receiver_gitlab'),
|
|
re_path(r'^bitbucket_dc/$', BitbucketDcWebhookReceiver.as_view(), name='webhook_receiver_bitbucket_dc'),
|
|
]
|