##// END OF EJS Templates
pr: Move log statement to allow early return and still log merge response.
Martin Bornhold -
r1070:1689a3fb default
parent child Browse files
Show More
@@ -924,6 +924,7 b' class PullRequestModel(BaseModel):'
924 924
925 925 try:
926 926 resp = self._try_merge(pull_request)
927 log.debug("Merge response: %s", resp)
927 928 status = resp.possible, self.merge_status_message(
928 929 resp.failure_reason)
929 930 except NotImplementedError:
@@ -983,7 +984,7 b' class PullRequestModel(BaseModel):'
983 984 _last_merge_status == MergeFailureReason.NONE
984 985 merge_state = MergeResponse(
985 986 possible, False, None, pull_request._last_merge_status)
986 log.debug("Merge response: %s", merge_state)
987
987 988 return merge_state
988 989
989 990 def _refresh_reference(self, reference, vcs_repository):
General Comments 0
You need to be logged in to leave comments. Login now