Implement support for the 'Changelog' custom field in changelog.py

This commit is contained in:
Gunnar Beutner 2015-02-24 13:45:36 +01:00
parent 9cd681148d
commit 38deef0411
1 changed files with 9 additions and 1 deletions

View File

@ -34,16 +34,24 @@ version_id = None
for version in versions_data["versions"]:
if version["name"] == version_name:
version_id = version["id"]
break
if version_id == None:
print "Version '%s' not found." % (version_name)
sys.exit(1)
changes = ""
for field in version["custom_fields"]:
if field["id"] == 14:
changes = field["value"]
break
print "### What's New in Version %s" % (version_name)
print ""
print "#### Changes"
print ""
print "TODO: Update this section."
print changes
print ""
print "#### Issues"
print ""