def _landingPushBaseException(self, e): base = phlcon_remarkup.monospaced(e.base_name) branch = phlcon_remarkup.monospaced(e.review_branch_name) author = phlcon_remarkup.bold('author') errors = phlcon_remarkup.code_block(str(e), lang="text", isBad=True) reviewer = phlcon_remarkup.bold('reviewer') message = ( "failed to push landed revision to {base}, see below.\n" "\n" "errors:\n" "{errors}" "this might be down to permissioning or maybe someone else " "updated the branch before we pushed.\n" "\n" "if there's a permissioning error then please ask the admin of " "this repository to resolve it before proceeding.\n" "\n" "{reviewer} may accept review again to retry the landing.\n" ).format( base=base, branch=branch, author=author, errors=errors, reviewer=reviewer) self._createComment(message)
def _landingPushBaseException(self, e): base = phlcon_remarkup.monospaced(e.base_name) branch = phlcon_remarkup.monospaced(e.review_branch_name) author = phlcon_remarkup.bold('author') errors = phlcon_remarkup.code_block(str(e), lang="text", isBad=True) reviewer = phlcon_remarkup.bold('reviewer') message = ( "failed to push landed revision to {base}, see below.\n" "\n" "errors:\n" "{errors}" "this might be down to permissioning or maybe someone else " "updated the branch before we pushed.\n" "\n" "if there's a permissioning error then please ask the admin of " "this repository to resolve it before proceeding.\n" "\n" "{reviewer} may accept review again to retry the landing.\n" ).format(base=base, branch=branch, author=author, errors=errors, reviewer=reviewer) self._createComment(message)
def _landingException(self, e): base = phlcon_remarkup.monospaced(e.base_name) branch = phlcon_remarkup.monospaced(e.review_branch_name) author = phlcon_remarkup.bold('author') errors = phlcon_remarkup.code_block(str(e), lang="text", isBad=True) reviewer = phlcon_remarkup.bold('reviewer') message = ( "failed to land revision on {base}, see below.\n" "\n" "errors:\n" "{errors}" "this is probably due to merge conflicts.\n" "\n" "{author}, please do the following:\n" "\n" "- merge {base} into {branch}\n" "- resolve merge conflicts\n" "- push to {branch}\n" "\n" "{reviewer} may then accept review with the new changes.\n" ).format( base=base, branch=branch, author=author, errors=errors, reviewer=reviewer) self._createComment(message)
def _landingException(self, e): base = phlcon_remarkup.monospaced(e.base_name) branch = phlcon_remarkup.monospaced(e.review_branch_name) author = phlcon_remarkup.bold('author') errors = phlcon_remarkup.code_block(str(e), lang="text", isBad=True) reviewer = phlcon_remarkup.bold('reviewer') message = ("failed to land revision on {base}, see below.\n" "\n" "errors:\n" "{errors}" "this is probably due to merge conflicts.\n" "\n" "{author}, please do the following:\n" "\n" "- merge {base} into {branch}\n" "- resolve merge conflicts\n" "- push to {branch}\n" "\n" "{reviewer} may then accept review with the new changes.\n" ).format(base=base, branch=branch, author=author, errors=errors, reviewer=reviewer) self._createComment(message)
def _landingException(self, e): base = phlcon_remarkup.monospaced(e.base_name) branch = phlcon_remarkup.monospaced(e.review_branch_name) author = phlcon_remarkup.bold('author') reviewer = phlcon_remarkup.bold('reviewer') message = "failed to land revision on " + base + ", see below.\n" message += "\n" message += "errors:\n" message += phlcon_remarkup.code_block(str(e), lang="text", isBad=True) message += "this is probably due to merge conflicts.\n" message += "\n" message += author + ", please do the following:\n" message += "\n" message += "- merge " + base + " into " + branch + "\n" message += "- resolve merge conflicts\n" message += "- push to " + branch + "\n" message += "\n" message += reviewer + " may then accept review with the new changes.\n" self._createComment(message)