[FIX] runbot: revert some upgrade_code errors

Co-authored-by: William Braeckman (wbr) <wbr@odoo.com>
This commit is contained in:
xdo 2024-11-05 15:23:37 +01:00 committed by William Braeckman (wbr)
parent d30856107c
commit 01e7676cb6
3 changed files with 4 additions and 4 deletions

View File

@ -135,7 +135,7 @@ class Branch(models.Model):
if branch.is_pr:
branch.branch_url = "https://%s/pull/%s" % (branch.remote_id.base_url, branch.name)
else:
branch.branch_url = "https://%s/list/%s" % (branch.remote_id.base_url, branch.name)
branch.branch_url = "https://%s/tree/%s" % (branch.remote_id.base_url, branch.name)
else:
branch.branch_url = ''

View File

@ -3,7 +3,7 @@
<data>
<template id="runbot.badge_default">&lt;?xml version="1.0"?&gt;
<svg t-attf-xmlns="http://www.w3.org/2000/svg" t-attf-width="{{left.width + right.width}}" height="18">
<!-- from https://github.com/badges/shields/list/master/templates -->
<!-- from https://github.com/badges/shields/tree/master/templates -->
<linearGradient id="smooth" x2="0" y2="100%">
<stop offset="0" stop-color="#fff" stop-opacity=".7"/>
<stop offset=".1" stop-color="#aaa" stop-opacity=".1"/>
@ -24,7 +24,7 @@
</template>
<template id="runbot.badge_flat">&lt;?xml version="1.0"?&gt;
<svg t-attf-xmlns="http://www.w3.org/2000/svg" t-attf-width="{{left.width + right.width}}" height="20">
<!-- from https://github.com/badges/shields/list/master/templates -->
<!-- from https://github.com/badges/shields/tree/master/templates -->
<linearGradient id="smooth" x2="0" y2="100%">
<stop offset="0" stop-color="#fff" stop-opacity=".1"/>
<stop offset=".1" stop-color="#fff" stop-opacity=".1"/>

View File

@ -6,7 +6,7 @@ from .common import RunbotCase, RunbotCaseMinimalSetup
class TestBranch(RunbotCase):
def test_base_fields(self):
self.assertEqual(self.branch_server.branch_url, 'https://example.com/base/server/list/master')
self.assertEqual(self.branch_server.branch_url, 'https://example.com/base/server/tree/master')
def test_pull_request(self):
mock_github = self.patchers['github_patcher']