summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-03-07 10:51:20 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-03-07 10:51:20 +0100
commit252ccd1b62e9a571ed1d797a5d5c96205f62b371 (patch)
treeea29bd930a1590075a7dc46b00c04c5c18036861
parent36769560e967bc99cee37e93bf74897f06aa727f (diff)
downloadSkyHanniChangelogBuilder-252ccd1b62e9a571ed1d797a5d5c96205f62b371.tar.gz
SkyHanniChangelogBuilder-252ccd1b62e9a571ed1d797a5d5c96205f62b371.tar.bz2
SkyHanniChangelogBuilder-252ccd1b62e9a571ed1d797a5d5c96205f62b371.zip
show error if author name is still the default
-rw-r--r--src/main/kotlin/Main.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/kotlin/Main.kt b/src/main/kotlin/Main.kt
index a472205..1064ba3 100644
--- a/src/main/kotlin/Main.kt
+++ b/src/main/kotlin/Main.kt
@@ -191,6 +191,9 @@ fun parseChanges(
changePattern.matchMatcher(line) {
val author = group("author")
+ if (author == "your_name_here") {
+ error("no author name")
+ }
val text = group("text")
if (illegalStartPattern.matcher(text).matches()) {
error("illegal start at change: '$text'")