public static void closeIssues(List<GHIssue> issues) throws IOException { for (GHIssue issue : issues) { issue.close(); } }
public static void closeIssues(List<GHIssue> issues) throws IOException { for (GHIssue issue : issues) { issue.close(); } }
@Override public void perform(@Nonnull Run<?, ?> run, @Nonnull FilePath workspace, @Nonnull Launcher launcher, @Nonnull TaskListener listener) throws InterruptedException, IOException { if (getStatusVerifier() != null && !getStatusVerifier().isRunAllowed(run)) { return; } String publishedURL = getTriggerDescriptor().getPublishedURL(); if (publishedURL != null && !publishedURL.isEmpty()) { try { if (getGhIssue(run).getState().equals(GHIssueState.OPEN)) { try { getGhPullRequest(run).close(); } catch (IOException ex) { LOGGER.error("Couldn't close the pull request #{}:", getPRNumberFromPRCause(run), ex); } } } catch (IOException ex) { listener.getLogger().println("Can't close pull request \n" + ex); handlePublisherError(run); } } }
context.info(LOG, "Closing issue as we have no further pending issues " + issue.getHtmlUrl()); issue.comment(Issues.CLOSE_MESSAGE + operationDescrption); issue.close();
context.info(LOG, "Closing issue as we have no further pending issues " + issue.getHtmlUrl()); issue.comment(Issues.CLOSE_MESSAGE + operationDescrption); issue.close();