Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -181,8 +181,10 @@ async def update_streams(request: Request):
|
|
181 |
# Extract branchName for commit_update events from the "old" commit data
|
182 |
if event_name == "commit_update":
|
183 |
branchName = payload.get("event", {}).get("data", {}).get("old", {}).get("branchName")
|
|
|
184 |
else:
|
185 |
branchName = payload.get("event", {}).get("data", {}).get("commit", {}).get("branchName")
|
|
|
186 |
|
187 |
# List of valid event types
|
188 |
valid_event_types = ["commit_create", "commit_delete", "commit_update"]
|
@@ -190,6 +192,7 @@ async def update_streams(request: Request):
|
|
190 |
if event_name in valid_event_types:
|
191 |
if streamName in config:
|
192 |
if branchName in config[streamName]:
|
|
|
193 |
stream_config = config[streamName][branchName]
|
194 |
should_continue = True
|
195 |
else:
|
|
|
181 |
# Extract branchName for commit_update events from the "old" commit data
|
182 |
if event_name == "commit_update":
|
183 |
branchName = payload.get("event", {}).get("data", {}).get("old", {}).get("branchName")
|
184 |
+
print("payload brnachname", branchName)
|
185 |
else:
|
186 |
branchName = payload.get("event", {}).get("data", {}).get("commit", {}).get("branchName")
|
187 |
+
print("payload brnachname", branchName)
|
188 |
|
189 |
# List of valid event types
|
190 |
valid_event_types = ["commit_create", "commit_delete", "commit_update"]
|
|
|
192 |
if event_name in valid_event_types:
|
193 |
if streamName in config:
|
194 |
if branchName in config[streamName]:
|
195 |
+
print("thats the config", config, "branchName", branchName)
|
196 |
stream_config = config[streamName][branchName]
|
197 |
should_continue = True
|
198 |
else:
|