Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ private void processSingleMessage(Message msgSummary, GitHub github, GHRepositor
var issue = issueOpt.get();
if (issue.getState() == GHIssueState.CLOSED) {
issue.reopen();
issue.addLabels(Labels.STATUS_TRIAGE, Labels.REOPENED_BY_BOT);
LOGGER.infof("Reopened existing closed issue #%d for thread %s", issue.getNumber(), threadId);
}
appendComment(issue, from, body, attachmentSection);
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/org/keycloak/gh/bot/utils/Labels.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public class Labels {

public static final String SOURCE_EMAIL = "source/email";

public static final String REOPENED_BY_BOT = "status/re-opened-by-bot";

public static boolean hasLabel(GHIssue issue, String label) {
return issue.getLabels().stream().filter(l -> l.getName().equals(label)).findFirst().isPresent();
}
Expand Down
Loading