home: jj: dryer changelog template
This commit is contained in:
parent
7cc542e27f
commit
20647c820f
|
@ -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)),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue