[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`.
This commit is contained in:
Xavier Morel 2025-02-03 08:03:08 +01:00
parent d7da328b9f
commit 9fa106f277

View File

@ -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),