Skip to content

Commit

Permalink
Merge branch 'master' into 1.21.4-rc3
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Dec 3, 2024
2 parents bedb769 + 4de7795 commit 8f78628
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ import java.time.LocalDate
import org.kohsuke.github.GHIssueState
import org.kohsuke.github.GHMilestoneState
import java.time.ZoneId
import java.time.Instant

task closeMilestone {
onlyIf {
Expand All @@ -197,7 +198,7 @@ task closeMilestone {
}

if (milestone.getState() != GHMilestoneState.CLOSED) {
milestone.setDueOn(Date.from(LocalDate.now().atStartOfDay(ZoneId.systemDefault()).toInstant()))
milestone.setDueOn(Date.from(Instant.now()))
milestone.setDescription(getChangelogUrl())
milestone.close()
}
Expand Down

0 comments on commit 8f78628

Please sign in to comment.