Merge pull request 'test PR1' (#1) from new-branch into master

Reviewed-on: #1
master
Thomas Martin 2024-11-26 09:08:06 +01:00
commit fab1e9e636
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ from google.cloud import storage
def handle_webhook(request): def handle_webhook(request):
request_json = request.get_json() request_json = request.get_json()
# Check if the required fields are in the request # Check if the required fields are in the request
print(request_json)
if not request_json or "repository" not in request_json: if not request_json or "repository" not in request_json:
return "Invalid request: 'repository' field missing", 400 return "Invalid request: 'repository' field missing", 400