From: Michael Friedrich Date: Thu, 21 Sep 2017 08:45:48 +0000 (+0200) Subject: changelog.py: Add "backported" to the list of ignored labels X-Git-Tag: v2.8.0~72^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=refs%2Fpull%2F5599%2Fhead;p=icinga2 changelog.py: Add "backported" to the list of ignored labels --- diff --git a/changelog.py b/changelog.py index f3b4726ac..f8cd361c2 100755 --- a/changelog.py +++ b/changelog.py @@ -30,6 +30,8 @@ except: changelog_file = "CHANGELOG.md" # TODO: config param debug = 1 +ignored_labels = ["high", "low", "bug", "enhancement", "feedback", "question", "backported"] + ################################# ## Helpers @@ -87,7 +89,7 @@ def escape_markdown(text): return re.sub("([<>*_()\[\]#])", r"\\\1", tmp) def format_labels(issue): - labels = filter(lambda label: label not in ["high", "low", "bug", "enhancement", "feedback", "question"], [label["name"] for label in issue["labels"]]) + labels = filter(lambda label: label not in ignored_labels, [label["name"] for label in issue["labels"]]) if len(labels): return " (" + ", ".join(labels) + ")"