INNER CODE UNIT · Python
process_section
mongodb/mongo-csharp-driver · evergreen/release-notes.py:124
def process_section(section):
if type(section) is str:
return apply_template(section, options)
if len(section["items"]) == 0:
return ""
content = ""
title = section.get("title", "")
if title != "":
content = apply_template(title, options) + '\n'
for pullrequest in section["items"]:
content = content + '\n - ' + pullrequest["title"]
return content
def publish_release_notes(opts, title, content):