runbot/runbot_merge/models
Xavier Morel 1c76a675c2 [IMP] runbot_merge: cancel splits on cancel=staging
If a PR is cancel=staging, even if it's not the
urgentest (priority=alone) odds are good it's being staged to fix the
split. And even if it's not, it probably can't hurt.

So cancel splits in order to stage it. This may be slightly harmful if
the split is legit and has nothing to do with the PR being
prioritised, but that seems like the less likely scenario. And having
to update staging priorities on the fly seems like a bad idea. Though
obviously it might do nothing if the PRs are in "default" priority.#

Also simplify the unstage trigger from the PRs becoming ready:

- the user is useless as it's always the system user
- the batch id is not really helpful
2024-06-26 14:30:31 +02:00
..
crons [FIX] runbot_merge: maintenance gc command 2024-02-26 09:58:22 +01:00
project_freeze [ADD] runbot_merge: synthetic batches & stagings to freeze wizard 2024-05-29 07:55:07 +02:00
staging_cancel [ADD] runbot_merge: stagings canceling wizard 2022-12-08 10:46:22 +01:00
__init__.py [ADD] *: per-repository webhook secret 2024-06-06 11:07:57 +02:00
batch.py [IMP] runbot_merge: cancel splits on cancel=staging 2024-06-26 14:30:31 +02:00
commands.py [ADD] runbot_merge: help command, and help on error 2024-06-24 22:16:43 +02:00
events_sources.py [ADD] *: per-repository webhook secret 2024-06-06 11:07:57 +02:00
ir_actions.py [IMP] runbot_merge: add json & requests to server actions context 2023-02-20 10:13:05 +01:00
project.py [ADD] *: per-repository webhook secret 2024-06-06 11:07:57 +02:00
pull_requests.py [IMP] runbot_merge: cancel splits on cancel=staging 2024-06-26 14:30:31 +02:00
res_partner.py [ADD] runbot_merge: ad-hoc ACL tracking to res.partner 2024-05-16 09:32:03 +02:00
stagings_create.py [FIX] runbot_merge: leftover direct setting of PR state 2024-06-11 15:41:20 +02:00
utils.py [FIX] runbot_merge: leftover direct setting of PR state 2024-06-11 15:41:20 +02:00