From 439e336a2f0e401b7cae6bb401d3ad77694db1a9 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Fri, 19 Oct 2018 08:50:20 +0200 Subject: [PATCH] [FIX] runbot: store pull_head_name on branch This one flew under the radar because it only affects a PR when its branch name changes. Closes #47 --- runbot/models/branch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/models/branch.py b/runbot/models/branch.py index a88607a4..e3ce456a 100644 --- a/runbot/models/branch.py +++ b/runbot/models/branch.py @@ -73,7 +73,7 @@ class runbot_branch(models.Model): for branch in self: pi = self._get_pull_info() if pi: - self.pull_head_name = pi['head']['ref'] + branch.pull_head_name = pi['head']['ref'] def _get_branch_quickconnect_url(self, fqdn, dest): self.ensure_one()