mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[FIX] runbot: revert some upgrade_code errors
Co-authored-by: William Braeckman (wbr) <wbr@odoo.com>
This commit is contained in:
parent
01562700d4
commit
a248923719
@ -135,7 +135,7 @@ class Branch(models.Model):
|
|||||||
if branch.is_pr:
|
if branch.is_pr:
|
||||||
branch.branch_url = "https://%s/pull/%s" % (branch.remote_id.base_url, branch.name)
|
branch.branch_url = "https://%s/pull/%s" % (branch.remote_id.base_url, branch.name)
|
||||||
else:
|
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:
|
else:
|
||||||
branch.branch_url = ''
|
branch.branch_url = ''
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<data>
|
<data>
|
||||||
<template id="runbot.badge_default"><?xml version="1.0"?>
|
<template id="runbot.badge_default"><?xml version="1.0"?>
|
||||||
<svg t-attf-xmlns="http://www.w3.org/2000/svg" t-attf-width="{{left.width + right.width}}" height="18">
|
<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%">
|
<linearGradient id="smooth" x2="0" y2="100%">
|
||||||
<stop offset="0" stop-color="#fff" stop-opacity=".7"/>
|
<stop offset="0" stop-color="#fff" stop-opacity=".7"/>
|
||||||
<stop offset=".1" stop-color="#aaa" stop-opacity=".1"/>
|
<stop offset=".1" stop-color="#aaa" stop-opacity=".1"/>
|
||||||
@ -24,7 +24,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<template id="runbot.badge_flat"><?xml version="1.0"?>
|
<template id="runbot.badge_flat"><?xml version="1.0"?>
|
||||||
<svg t-attf-xmlns="http://www.w3.org/2000/svg" t-attf-width="{{left.width + right.width}}" height="20">
|
<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%">
|
<linearGradient id="smooth" x2="0" y2="100%">
|
||||||
<stop offset="0" stop-color="#fff" stop-opacity=".1"/>
|
<stop offset="0" stop-color="#fff" stop-opacity=".1"/>
|
||||||
<stop offset=".1" stop-color="#fff" stop-opacity=".1"/>
|
<stop offset=".1" stop-color="#fff" stop-opacity=".1"/>
|
||||||
|
@ -6,7 +6,7 @@ from .common import RunbotCase, RunbotCaseMinimalSetup
|
|||||||
class TestBranch(RunbotCase):
|
class TestBranch(RunbotCase):
|
||||||
|
|
||||||
def test_base_fields(self):
|
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):
|
def test_pull_request(self):
|
||||||
mock_github = self.patchers['github_patcher']
|
mock_github = self.patchers['github_patcher']
|
||||||
|
Loading…
Reference in New Issue
Block a user