Skip to content

Commit

Permalink
Merge branch 'master' into 1.21-neoforge
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Nov 15, 2024
2 parents cc8b5cb + 6385b65 commit 0be4385
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ task github {
}

import java.time.LocalDate
import org.kohsuke.github.GHIssueState
import org.kohsuke.github.GHMilestoneState
import java.time.ZoneId

task closeMilestone {
Expand All @@ -334,12 +334,12 @@ task closeMilestone {
def ghVersion = "v" + version.substring(0, version.indexOf("-MC"))
def versionSlug = ghVersion.substring(1).replace('.', '-')

def milestone = repository.listMilestones(GHIssueState.ALL).find { it.title == ghVersion }
def milestone = repository.listMilestones(GHMilestoneState.ALL).find { it.title == ghVersion }
if (milestone == null) {
milestone = repository.createMilestone(ghVersion, null)
}

if (!milestone.isClosed()) {
if (milestone.getState() != GHMilestoneState.CLOSED) {
milestone.setDueOn(Date.from(LocalDate.now().atStartOfDay(ZoneId.systemDefault()).toInstant()))
milestone.setDescription("https://wimods.net/chestesp/chestesp-${versionSlug}/")
milestone.close()
Expand Down

0 comments on commit 0be4385

Please sign in to comment.