% if c.pr_merge_possible:

${_('This pull request can be merged automatically.')}

% else:

${_('Merge is not currently possible because of below failed checks.')}

% endif % if c.pr_merge_errors.items(): % endif
% if c.allowed_to_merge: ## Merge info, show only if all errors are taken care of % if not c.pr_merge_errors and c.pr_merge_info:
    % for pr_merge_key, pr_merge_details in c.pr_merge_info.items():
  • - ${pr_merge_details['message']}
  • % endfor
% endif
${h.secure_form(h.route_path('pullrequest_merge', repo_name=c.repo_name, pull_request_id=c.pull_request.pull_request_id), id='merge_pull_request_form', request=request)} <% merge_disabled = ' disabled' if c.pr_merge_possible is False else '' %> % if c.allowed_to_close: ## close PR action, injected later next to COMMENT button % if c.pull_request_review_status == c.REVIEW_STATUS_APPROVED: ${_('Close with status {}').format(h.commit_status_lbl(c.REVIEW_STATUS_APPROVED))} % else: ${_('Close with status {}').format(h.commit_status_lbl(c.REVIEW_STATUS_REJECTED))} % endif % endif ${h.end_form()}
% elif c.rhodecode_user.username != h.DEFAULT_USER: ${_('refresh checks')} % else: % endif