From 9fa106f2779ddf8db343deefa063ae51fb610374 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 3 Feb 2025 08:03:08 +0100 Subject: [PATCH] [FIX] runbot_merge: squash update on ignored PR events Apparently when I updated the logic of the lookup to that of search I forgot to update the *method* to `search`. --- runbot_merge/controllers/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot_merge/controllers/__init__.py b/runbot_merge/controllers/__init__.py index 2e697589..1aa3d129 100644 --- a/runbot_merge/controllers/__init__.py +++ b/runbot_merge/controllers/__init__.py @@ -171,7 +171,7 @@ def handle_pr(env, event): event['pull_request']['base']['repo']['full_name'], event['pull_request']['number'], ) - if pr := env['runbot_merge.pull_requests'].search_fetch([ + if pr := env['runbot_merge.pull_requests'].search([ ('repository.name', '=', r), ('number', '=', pr['number']), ('squash', '!=', squash),