Skip to content

Commit

Permalink
Add closed by bot label to auto-expired missing-info (#39)
Browse files Browse the repository at this point in the history
Signed-off-by: stianst <[email protected]>
  • Loading branch information
stianst committed Feb 28, 2024
1 parent b0535c7 commit 2b4e06d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 2b4e06d

Please sign in to comment.