runbot/runbot_merge/models/__init__.py
Xavier Morel 5703840b3b [MOV] runbot_merge: all the staging creation code to a separate module
Move *almost* all the staging code to free functions, in a separate
module, and extensively typed.

The only bits which didn't move are:

- the entry point (the cron hook), because it has to be a model method
  in order to be called
- the `_build_merge_message` method, because it needs to be
  overridable

There's also a bit of an import mess, because the cron &
`_build_merge_message` need to call into the new module, but the new
module wants the types they belong to, so it's a bit circular.
2023-08-18 13:07:51 +02:00

9 lines
209 B
Python

from . import ir_actions
from . import res_partner
from . import project
from . import pull_requests
from . import project_freeze
from . import stagings_create
from . import staging_cancel
from . import crons