Skip to content

Commit 3913498

Browse files
author
Gabriel Monroy
committed
return app info on build hook
1 parent c7251a7 commit 3913498

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

api/views.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,9 @@ def create(self, request, *args, **kwargs):
699699
request._data = request.DATA.copy()
700700
request.DATA['app'] = app
701701
request.DATA['owner'] = user
702-
return super(BuildHookViewSet, self).create(request, *args, **kwargs)
702+
super(BuildHookViewSet, self).create(request, *args, **kwargs)
703+
# return the application databag
704+
return Response(app.calculate(), status=status.HTTP_200_OK)
703705
raise PermissionDenied()
704706

705707
def post_save(self, obj, created=False):

0 commit comments

Comments
 (0)