From a3d52f9cc7dde525fc377ef58d522534c0ddbcaf Mon Sep 17 00:00:00 2001 From: Tal Date: Sat, 5 Jul 2025 09:05:23 +0300 Subject: [PATCH] Update pr_agent/servers/gitlab_webhook.py Co-authored-by: qodo-merge-for-open-source[bot] <189517486+qodo-merge-for-open-source[bot]@users.noreply.github.com> --- pr_agent/servers/gitlab_webhook.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pr_agent/servers/gitlab_webhook.py b/pr_agent/servers/gitlab_webhook.py index a699f190..c020ec44 100644 --- a/pr_agent/servers/gitlab_webhook.py +++ b/pr_agent/servers/gitlab_webhook.py @@ -236,6 +236,8 @@ async def gitlab_webhook(background_tasks: BackgroundTasks, request: Request): # Apply repo settings before checking push commands or handle_push_trigger apply_repo_settings(url) + + commands_on_push = get_settings().get(f"gitlab.push_commands", {}) commands_on_push = get_settings().get(f"gitlab.push_commands", {}) handle_push_trigger = get_settings().get(f"gitlab.handle_push_trigger", False) if not commands_on_push or not handle_push_trigger: