Skip to content

Commit

Permalink
Not failing when PR Status fails, instead we just don't populate the …
Browse files Browse the repository at this point in the history
…PR details
  • Loading branch information
ashwanthkumar-avalara committed Sep 11, 2020
1 parent f06bdcb commit b792968
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,10 @@ private PullRequestStatus getPullRequestStatus(GitConfig gitConfig, String prId,
MergeRequest currentPR = pullRequestFrom(gitConfig, Integer.parseInt(prId));
return transformMergeRequestToPullRequestStatus(prSHA).apply(currentPR);
} catch (Exception e) {
// ignore
LOG.error(String.format("Failed to fetch PR status. %s", e.getMessage()), e);
throw new RuntimeException(String.format("Failed to fetch PR status. %s", e.getMessage()), e);
}
return null;
}

private MergeRequest pullRequestFrom(GitConfig gitConfig, int currentPullRequestID) throws GitLabApiException {
Expand Down

0 comments on commit b792968

Please sign in to comment.