home: jj: dryer changelog template

This commit is contained in:
Antoine Martin 2025-03-15 16:14:40 +01:00
parent 7cc542e27f
commit 20647c820f

View file

@ -64,20 +64,20 @@ concat(
diff.git(),
)
'''
"commit_description_verbose_changelog(commit)" = '''
"changelog_entry(file)" = '''
concat(
commit_description_changelog(commit),
"JJ: ignore-rest\n",
diff.git(),
"* ",
f.path(),
":\n",
)
'''
"commit_description_changelog(commit)" = '''
concat(
commit.description(), "\n",
surround("", "\n", diff.files().map(|f| if(!commit.description().contains(f.path()),
"* " ++ f.path() ++ ":\n"
)
).join("")),
surround("", "\n", diff.files().map(|f| if(!commit.description().contains(changelog_entry(f)),
changelog_entry(f)
)
).join("")),
"JJ: This commit contains the following changes:\n",
indent("JJ: ", diff.stat(72)),
)