
org.kiwiproject.changelog.github.GitHubChange.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of changelog-generator Show documentation
Show all versions of changelog-generator Show documentation
Generates GitHub change logs.
package org.kiwiproject.changelog.github
import org.kiwiproject.changelog.github.GitHubSearchManager.GitHubIssue
data class GitHubChange(val number: Int, val title: String, val htmlUrl: String, val category: String) {
companion object {
fun from(issue: GitHubIssue, category: String): GitHubChange {
return GitHubChange(issue.number, issue.title, issue.htmlUrl, category)
}
}
fun asMarkdown() = "$title [(#$number)]($htmlUrl)"
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy