Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -401,7 +401,7 @@ async def webhook_handler(request: Request, background_tasks: BackgroundTasks):
|
|
401 |
print(f"π Event details - scope: {scope}, action: {action}")
|
402 |
|
403 |
# Check if this is a discussion comment creation
|
404 |
-
scope_check = scope == "discussion.comment"
|
405 |
action_check = action == "create"
|
406 |
not_pr = not payload["discussion"]["isPullRequest"]
|
407 |
# scope_check = scope_check and not_pr
|
|
|
401 |
print(f"π Event details - scope: {scope}, action: {action}")
|
402 |
|
403 |
# Check if this is a discussion comment creation
|
404 |
+
scope_check = scope == "discussion.comment"
|
405 |
action_check = action == "create"
|
406 |
not_pr = not payload["discussion"]["isPullRequest"]
|
407 |
# scope_check = scope_check and not_pr
|