mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 15:35:46 +07:00
[IMP] runbot: allow pr creation on closed pr
Even if we prefer to avoid this use case, some devs like to use the same branch for multiple pr. This change allows to reopen a pr once one is closed.
This commit is contained in:
parent
b018e5a1a4
commit
4b959fec81
@ -48,7 +48,7 @@
|
||||
<a groups="runbot.group_runbot_admin" class="btn btn-default fa fa-list text-left" t-attf-href="/web/#id={{branch.id}}&view_type=form&model=runbot.branch" target="new" title="View Branch in Backend"/>
|
||||
<a href="#" t-esc="branch.remote_id.short_name" class="btn btn-default disabled text-left"/>
|
||||
<a t-attf-href="/runbot/branch/{{branch.id}}" class="btn btn-default text-left" title="View Branch Details"><span t-att-class="'' if branch.alive else 'line-through'" t-esc="branch.name"/> <i t-if="not branch.alive" title="deleted/closed" class="fa fa-ban text-danger"/></a>
|
||||
<t t-if="len(group[1]) == 1 and not branch.is_pr">
|
||||
<t t-if="not any (b.is_pr and b.alive for b in group[1]) and not branch.is_pr">
|
||||
<a t-attf-href="https://{{group[0].main_remote_id.base_url}}/compare/{{bundle.version_id.name}}...{{branch.remote_id.owner}}:{{branch.name}}?expand=1" class="btn btn-default text-left" title="Create pr"><i class="fa fa-code-fork"/> Create pr</a>
|
||||
</t>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user