Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,6 +89,7 @@ async def github_webhook(
|
|
| 89 |
Receives and processes GitHub webhook events for new Pull Request creation.
|
| 90 |
"""
|
| 91 |
# Ensure it's a pull_request event first
|
|
|
|
| 92 |
if x_github_event != "pull_request":
|
| 93 |
print(f"Received non-pull_request event: {x_github_event}. Skipping.")
|
| 94 |
return {"message": f"Event type '{x_github_event}' ignored."}
|
|
@@ -149,6 +150,7 @@ async def github_webhook(
|
|
| 149 |
initial_state = PRReviewState(**initial_state_data)
|
| 150 |
output = graph.invoke(initial_state, config)
|
| 151 |
print(f"completed graph execution with result:{output['last_error']}")
|
|
|
|
| 152 |
|
| 153 |
|
| 154 |
@app.get("/")
|
|
|
|
| 89 |
Receives and processes GitHub webhook events for new Pull Request creation.
|
| 90 |
"""
|
| 91 |
# Ensure it's a pull_request event first
|
| 92 |
+
print("/webhook triggered successfully")
|
| 93 |
if x_github_event != "pull_request":
|
| 94 |
print(f"Received non-pull_request event: {x_github_event}. Skipping.")
|
| 95 |
return {"message": f"Event type '{x_github_event}' ignored."}
|
|
|
|
| 150 |
initial_state = PRReviewState(**initial_state_data)
|
| 151 |
output = graph.invoke(initial_state, config)
|
| 152 |
print(f"completed graph execution with result:{output['last_error']}")
|
| 153 |
+
return
|
| 154 |
|
| 155 |
|
| 156 |
@app.get("/")
|