mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[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:
parent
d7da328b9f
commit
9fa106f277
@ -171,7 +171,7 @@ def handle_pr(env, event):
|
|||||||
event['pull_request']['base']['repo']['full_name'],
|
event['pull_request']['base']['repo']['full_name'],
|
||||||
event['pull_request']['number'],
|
event['pull_request']['number'],
|
||||||
)
|
)
|
||||||
if pr := env['runbot_merge.pull_requests'].search_fetch([
|
if pr := env['runbot_merge.pull_requests'].search([
|
||||||
('repository.name', '=', r),
|
('repository.name', '=', r),
|
||||||
('number', '=', pr['number']),
|
('number', '=', pr['number']),
|
||||||
('squash', '!=', squash),
|
('squash', '!=', squash),
|
||||||
|
Loading…
Reference in New Issue
Block a user