home: jj: dryer changelog template
This commit is contained in:
parent
7cc542e27f
commit
20647c820f
|
@ -64,18 +64,18 @@ concat(
|
||||||
diff.git(),
|
diff.git(),
|
||||||
)
|
)
|
||||||
'''
|
'''
|
||||||
"commit_description_verbose_changelog(commit)" = '''
|
"changelog_entry(file)" = '''
|
||||||
concat(
|
concat(
|
||||||
commit_description_changelog(commit),
|
"* ",
|
||||||
"JJ: ignore-rest\n",
|
f.path(),
|
||||||
diff.git(),
|
":\n",
|
||||||
)
|
)
|
||||||
'''
|
'''
|
||||||
"commit_description_changelog(commit)" = '''
|
"commit_description_changelog(commit)" = '''
|
||||||
concat(
|
concat(
|
||||||
commit.description(), "\n",
|
commit.description(), "\n",
|
||||||
surround("", "\n", diff.files().map(|f| if(!commit.description().contains(f.path()),
|
surround("", "\n", diff.files().map(|f| if(!commit.description().contains(changelog_entry(f)),
|
||||||
"* " ++ f.path() ++ ":\n"
|
changelog_entry(f)
|
||||||
)
|
)
|
||||||
).join("")),
|
).join("")),
|
||||||
"JJ: This commit contains the following changes:\n",
|
"JJ: This commit contains the following changes:\n",
|
||||||
|
|
Loading…
Reference in a new issue