[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [sbws/maint-1.1] new: Add gitchangelog template
commit 3bc35e6c09ded9f35f5aff15521fe5e49804db31
Author: juga0 <juga@xxxxxxxxxx>
Date: Sat Nov 24 14:21:53 2018 +0000
new: Add gitchangelog template
---
.gitchangelogrst.tpl | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/.gitchangelogrst.tpl b/.gitchangelogrst.tpl
new file mode 100644
index 0000000..46f02a3
--- /dev/null
+++ b/.gitchangelogrst.tpl
@@ -0,0 +1,34 @@
+% 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"]:
+<%
+subject = "%s [%s]" % (commit["subject"], ", ".join(commit["authors"]))
+entry = indent('\n'.join(textwrap.wrap(subject)),
+ first="- ").strip()
+%>${entry}
+
+% if commit["body"]:
+${indent(commit["body"])}
+% endif
+% endfor
+% endfor
+
+% endfor
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits