Browse Source

Comment unused labels

Igor Demin 7 months ago
parent
commit
bafc01236a
  1. 6
      tools/changelog.main.kts

6
tools/changelog.main.kts

@ -157,9 +157,9 @@ fun repoNumberForCommit(commit: GitHubCompareResponse.CommitEntry): Int? {
fun typeOf(pullRequest: GitHubPullEntry): Type {
val labels = pullRequest.labels.mapTo(mutableSetOf()) { it.name.lowercase() }
return when {
labels.contains("changelog: highlight") -> Type.Highlighted
labels.contains("changelog: normal") -> Type.Normal
labels.contains("changelog: prerelease fix") -> Type.PrereleaseFix
// labels.contains("changelog: highlight") -> Type.Highlighted
// labels.contains("changelog: normal") -> Type.Normal
// labels.contains("changelog: prerelease fix") -> Type.PrereleaseFix
else -> Type.Unknown
}
}

Loading…
Cancel
Save