// close failed pull request automatically
if (state == GHCommitState.FAILURE && trigger.isAutoCloseFailedPullRequests()) {
try {
GHPullRequest pr = repo.getPullRequest(c.getPullID());
if (pr.getState().equals(GHIssueState.OPEN)) {
repo.closePullRequest(c.getPullID());
}
} catch (IOException ex) {
logger.println("Can't close pull request");
ex.printStackTrace(logger);