From 9f1ff1194de60b32eea17d05fdc167614a3d1934 Mon Sep 17 00:00:00 2001 From: stianst Date: Wed, 28 Feb 2024 16:02:34 +0100 Subject: [PATCH] Add closed by bot label to auto-expired missing-info Signed-off-by: stianst --- .../org/keycloak/gh/bot/BugActionScheduleExpireMissingInfo.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/keycloak/gh/bot/BugActionScheduleExpireMissingInfo.java b/src/main/java/org/keycloak/gh/bot/BugActionScheduleExpireMissingInfo.java index 61becc0..19d4f13 100644 --- a/src/main/java/org/keycloak/gh/bot/BugActionScheduleExpireMissingInfo.java +++ b/src/main/java/org/keycloak/gh/bot/BugActionScheduleExpireMissingInfo.java @@ -78,6 +78,7 @@ public void checkIssuesWithMissingInformation() throws IOException { String comment = messages.getExpireComment(expirationValue, expirationUnit); issue.comment(comment); issue.removeLabels(Status.MISSING_INFORMATION.toLabel()); + issue.addLabels(Status.EXPIRED_BY_BOT.toLabel()); issue.close(GHIssueStateReason.NOT_PLANNED); lastChecked.remove(issue); logger.infov("Expired: issue={0}", issue.getNumber());