Skip to content

Commit

Permalink
Use nicer emoji (#206)
Browse files Browse the repository at this point in the history
They are from my MacBook Pro.

Hopefully they still look decent elsewhere.
  • Loading branch information
sleberknight authored Jul 20, 2024
1 parent 85f5eb5 commit 9e10475
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions src/main/kotlin/org/kiwiproject/changelog/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -212,15 +212,15 @@ class App : Runnable {
return
}

println("⚙ Generating change log for version $revision")
println(" Generating change log for version $revision")

val githubToken = token ?: System.getenv("KIWI_CHANGELOG_TOKEN")
check(githubToken != null) {
"GitHub token must be provided as command line option or KIWI_CHANGELOG_TOKEN environment variable"
}

// Get external configuration if one exists
println("🛠 Getting configuration information")
println("🛠 Getting configuration information")
val currentDirectory = File(".").absoluteFile.parentFile
val userHomeDirectory = File(System.getProperty("user.home"))
val externalConfig = externalConfig(currentDirectory, userHomeDirectory, configFile, ignoreConfigFiles)
Expand Down Expand Up @@ -259,8 +259,8 @@ class App : Runnable {
val gitHubPagingHelper = GitHubPagingHelper()
val searchManager = GitHubSearchManager(repoConfig, githubApi, gitHubPagingHelper, mapper)

println("⚙ Gathering information for change log")
var generateResult = ChangelogGenerator(repoConfig, changeLogConfig, releaseManager, searchManager).generate()
println(" Gathering information for change log")
val generateResult = ChangelogGenerator(repoConfig, changeLogConfig, releaseManager, searchManager).generate()

println("✅ Generated change log for release ${repoConfig.milestone()}")
println()
Expand All @@ -287,7 +287,7 @@ class App : Runnable {

private fun printArgValues() {
println()
println("📖 Arguments:")
println("ℹ️ Arguments:")
println("✔ repoHostUrl = $repoHostUrl")
println("✔ repoHostApi = $repoHostApi")
println("✔ token = $token")
Expand Down Expand Up @@ -328,7 +328,7 @@ class App : Runnable {
milestoneManager: GitHubMilestoneManager
): GitHubMilestone {
val milestoneTitle = maybeMilestoneTitle ?: repoConfig.milestone()
println("⚙ Closing milestone $milestoneTitle")
println(" Closing milestone $milestoneTitle")

val milestone = milestoneManager.getOpenMilestoneByTitle(milestoneTitle)
val closedMilestone = milestoneManager.closeMilestone(milestone.number)
Expand All @@ -338,11 +338,11 @@ class App : Runnable {

@VisibleForTesting
fun createMilestone(title: String, milestoneManager: GitHubMilestoneManager): GitHubMilestone {
println("⚙ Creating new milestone $title")
println(" Creating new milestone $title")

val maybeMilestone = milestoneManager.getOpenMilestoneByTitleOrNull(title)
if (maybeMilestone != null) {
println("⚠ Milestone $title already exists. Returning it.")
println(" Milestone $title already exists. Returning it.")
return maybeMilestone
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ internal fun ensureAllCategories(
val initialCategories = categoryOrder.ifEmpty { categories }
val missingCategories = categories - initialCategories.toSet()
if (missingCategories.isNotEmpty()) {
println("⚠ WARN: Missing categories ${missingCategories.joinToString()} (they will be added after other categories)")
println(" WARN: Missing categories ${missingCategories.joinToString()} (they will be added after other categories)")
}
return when {
missingCategories.isNotEmpty() -> initialCategories + missingCategories.sorted()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class GitHubCategoryFinder(categoryConfig: CategoryConfig) {

val foundLabel = labels.intersect(labelMapping.keys).firstOrNull()
if (foundLabel == null) {
println("⚠ WARN: Using default category ($defaultCategory) b/c no mapping found for label(s): $labels")
println(" WARN: Using default category ($defaultCategory) b/c no mapping found for label(s): $labels")
return defaultCategory
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class GitHubSearchManager(
return if (commitContainer["author"] != null) {
gitHubUserFrom(authorName, commitContainer)
} else {
println("⚠ WARN: Commit has null author: API: ${commitContainer["url"]} , HTML: ${commitContainer["html_url"]}")
println(" WARN: Commit has null author: API: ${commitContainer["url"]} , HTML: ${commitContainer["html_url"]}")
GitHubUser(authorName, null, null)
}
}
Expand Down

0 comments on commit 9e10475

Please sign in to comment.