mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
Implement support for the 'Changelog' custom field in changelog.py
This commit is contained in:
parent
9cd681148d
commit
38deef0411
10
changelog.py
10
changelog.py
@ -34,16 +34,24 @@ version_id = None
|
|||||||
for version in versions_data["versions"]:
|
for version in versions_data["versions"]:
|
||||||
if version["name"] == version_name:
|
if version["name"] == version_name:
|
||||||
version_id = version["id"]
|
version_id = version["id"]
|
||||||
|
break
|
||||||
|
|
||||||
if version_id == None:
|
if version_id == None:
|
||||||
print "Version '%s' not found." % (version_name)
|
print "Version '%s' not found." % (version_name)
|
||||||
sys.exit(1)
|
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 "### What's New in Version %s" % (version_name)
|
||||||
print ""
|
print ""
|
||||||
print "#### Changes"
|
print "#### Changes"
|
||||||
print ""
|
print ""
|
||||||
print "TODO: Update this section."
|
print changes
|
||||||
print ""
|
print ""
|
||||||
print "#### Issues"
|
print "#### Issues"
|
||||||
print ""
|
print ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user