mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
parent
17a37f2d91
commit
27764cb43a
10
changelog.py
10
changelog.py
@ -21,11 +21,14 @@
|
|||||||
import urllib2, json, sys, string
|
import urllib2, json, sys, string
|
||||||
|
|
||||||
if len(sys.argv) < 2:
|
if len(sys.argv) < 2:
|
||||||
print "Usage:", sys.argv[0], "<VERSION>"
|
print "Usage:", sys.argv[0], "<VERSION>", "[link-issues]"
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
version_name = sys.argv[1]
|
version_name = sys.argv[1]
|
||||||
|
|
||||||
|
link_issues = (len(sys.argv) >= 3 and sys.argv[2] == "link-issues")
|
||||||
|
issue_url = "https://dev.icinga.org/issues/"
|
||||||
|
|
||||||
rsp = urllib2.urlopen("https://dev.icinga.org/projects/i2/versions.json")
|
rsp = urllib2.urlopen("https://dev.icinga.org/projects/i2/versions.json")
|
||||||
versions_data = json.loads(rsp.read())
|
versions_data = json.loads(rsp.read())
|
||||||
|
|
||||||
@ -91,7 +94,10 @@ for p in range(2):
|
|||||||
|
|
||||||
for log_entry in sorted(log_entries):
|
for log_entry in sorted(log_entries):
|
||||||
if (p == 0 and log_entry[0] == "Feature") or (p == 1 and log_entry[0] != "Feature"):
|
if (p == 0 and log_entry[0] == "Feature") or (p == 1 and log_entry[0] != "Feature"):
|
||||||
print "* %s %d: %s" % log_entry
|
if not link_issues:
|
||||||
|
print "* %s %d: %s" % log_entry
|
||||||
|
else:
|
||||||
|
print "* {0} [{1}]({3}{1} \"{0} {1}\"): {2}".format(log_entry[0], log_entry[1], log_entry[2], issue_url)
|
||||||
not_empty = True
|
not_empty = True
|
||||||
|
|
||||||
if not_empty:
|
if not_empty:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user