[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
This commit is contained in:
Christophe Monniez 2018-10-19 08:50:20 +02:00 committed by GitHub
parent 2f4a6f82ff
commit 439e336a2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()