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 @@
+
@@ -30,6 +31,41 @@
+
+ Branch Form
+ runbot_merge.branch
+
+
+
+
Projects
@@ -124,6 +160,7 @@
+
@@ -189,17 +226,28 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -209,6 +257,7 @@
+
@@ -229,10 +278,43 @@
-
+
+ commits form
+ runbot_merge.commit
+
+
+
+