Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -171,6 +171,8 @@ async def update_streams(request: Request):
|
|
171 |
# Check if the payload structure matches the expected format
|
172 |
# Assuming payload["event"]["event_name"] gives you the event type
|
173 |
event_name = payload["event"]["event_name"]
|
|
|
|
|
174 |
|
175 |
# List of valid event types
|
176 |
valid_event_types = ["commit_create", "commit_delete", "commit_update"]
|
|
|
171 |
# Check if the payload structure matches the expected format
|
172 |
# Assuming payload["event"]["event_name"] gives you the event type
|
173 |
event_name = payload["event"]["event_name"]
|
174 |
+
streamName = payload.get("stream", {}).get("name")
|
175 |
+
branchName = payload["event"]["data"]["commit"].get("branchName")
|
176 |
|
177 |
# List of valid event types
|
178 |
valid_event_types = ["commit_create", "commit_delete", "commit_update"]
|