public static List<DependencyVersionChange> loadPendingChangesFromIssue(CommandContext context, GHIssue issue) throws IOException { List<GHIssueComment> comments = issue.getComments(); String lastCommand = null; for (GHIssueComment comment : comments) { String command = updateBotIssuePendingChangesComment(context, comment); if (command != null) { lastCommand = command; } } if (lastCommand == null) { LOG.warn("No UpdateBot comment found on issue " + issue.getHtmlUrl()); return new ArrayList<>(); } return parseUpdateBotIssuePendingChangesComment(lastCommand); }
public static List<DependencyVersionChange> loadPendingChangesFromIssue(CommandContext context, GHIssue issue) throws IOException { List<GHIssueComment> comments = issue.getComments(); String lastCommand = null; for (GHIssueComment comment : comments) { String command = updateBotIssuePendingChangesComment(context, comment); if (command != null) { lastCommand = command; } } if (lastCommand == null) { LOG.warn("No UpdateBot comment found on issue " + issue.getHtmlUrl()); return new ArrayList<>(); } return parseUpdateBotIssuePendingChangesComment(lastCommand); }