.gitchangelogrst.tpl 664 Bytes
Newer Older
juga's avatar
juga committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
% if data["title"]:
${data["title"]}
\n
${"=" * len(data["title"])}


% endif
% for version in data["versions"]:
<%
title = "%s (%s)" % (version["tag"], version["date"]) if version["tag"] else opts["unreleased_version_label"]

nb_sections = len(version["sections"])
%>${title}
${"-" * len(title)}
% for section in version["sections"]:
% if not (section["label"] == "Other" and nb_sections == 1):

${section["label"]}
${"~" * len(section["label"])}
% endif
% for commit in section["commits"]:
juga's avatar
juga committed
22
23
24
25
<% c = commit["subject"]
if commit["body"]:
  c += "\n" + commit["body"].replace("\n\n", "\n")
entry = indent(c, first="- ").strip()
juga's avatar
juga committed
26
27
28
29
30
%>${entry}
% endfor
% endfor

% endfor