diff --git a/runbot_merge/models/pull_requests.py b/runbot_merge/models/pull_requests.py index ed50d02b..ba8ac7f7 100644 --- a/runbot_merge/models/pull_requests.py +++ b/runbot_merge/models/pull_requests.py @@ -1716,6 +1716,10 @@ class Commit(models.Model): statuses = fields.Char(help="json-encoded mapping of status contexts to states", default="{}") to_check = fields.Boolean(default=False) + head_ids = fields.Many2many('runbot_merge.stagings', relation='runbot_merge_stagings_heads', column2='staging_id', column1='commit_id') + commit_ids = fields.Many2many('runbot_merge.stagings', relation='runbot_merge_stagings_commits', column2='staging_id', column1='commit_id') + + def create(self, values): values['to_check'] = True r = super(Commit, self).create(values) diff --git a/runbot_merge/views/mergebot.xml b/runbot_merge/views/mergebot.xml index ab5c8ee4..a05fcc57 100644 --- a/runbot_merge/views/mergebot.xml +++ b/runbot_merge/views/mergebot.xml @@ -20,6 +20,7 @@ +