serJD commited on
Commit
74638a0
·
verified ·
1 Parent(s): a3c0add

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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"]