Skip to content

Commit 467c3d4

Browse files
committed
fix: added pr desc and pr_review in config
1 parent f738132 commit 467c3d4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

api/main.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ async def handle_webhook(request: Request, background_tasks: BackgroundTasks):
3030
return HTTPException(status_code=404, detail="Invalid Signature")
3131

3232
if event == "pull_request":
33-
if payload["action"] in ACTIONS_TO_PROCESS_PR:
33+
if CONFIG_DATA["github_app"]["auto_pr_review"] or payload["action"] in ACTIONS_TO_PROCESS_PR:
3434
background_tasks.add_task(process_pull_request, payload)
35-
if payload["action"] in ACTIONS_TO_UPDATE_DESC:
35+
if CONFIG_DATA["github_app"]["edit_pr_desc"] and payload["action"] in ACTIONS_TO_UPDATE_DESC:
3636
background_tasks.add_task(process_pr_desc, payload)
3737
else:
3838
logger.info(f"Ignored event: {event}")

config.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"enable_observability_logging": true
55
},
66
"github_app": {
7-
"check_signature": false
7+
"check_signature": false,
8+
"auto_pr_review": true,
9+
"edit_pr_desc": true
810
}
911
}

0 commit comments

Comments
 (0)