From: Nathan Cutler Date: Sun, 26 Mar 2017 16:44:56 +0000 (+0200) Subject: tools: ceph-release-notes: put github repo labels in a global variable X-Git-Tag: v12.0.2~226^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2c64fed35ae828d0d6932ab06ec3deaeffaab1c8;p=ceph.git tools: ceph-release-notes: put github repo labels in a global variable Signed-off-by: Nathan Cutler --- diff --git a/src/script/ceph-release-notes b/src/script/ceph-release-notes index 5082bee501ec..291464550f15 100755 --- a/src/script/ceph-release-notes +++ b/src/script/ceph-release-notes @@ -35,6 +35,9 @@ from git import Repo fixes_re = re.compile(r"Fixes\:? #(\d+)") +labels = [ 'bluestore', 'build/ops', 'cephfs', 'common', 'core', 'mgr', + 'mon', 'performance', 'pybind', 'rdma', 'rgw', 'rbd', 'tests', + 'tools' ] merge_re = re.compile("Merge pull request #(\d+).*") prefixes = [ 'bluestore', 'build/ops', 'cephfs', 'cephx', 'cli', 'cmake', 'common', 'core', 'crush', 'doc', 'fs', 'librados', 'librbd', @@ -84,7 +87,7 @@ def split_component(title,gh,number): issue_labels = {it['name'] for it in issue['labels']} if 'documentation' in issue_labels: return 'doc: '+ title - item = {'bluestore','build/ops','cephfs','common','core','mgr','mon','performance','pybind','rdma','rgw','rbd','tests','tools'}.intersection(issue_labels) + item = labels.intersection(issue_labels) if item: return ",".join(item)+': '+title else: