]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tools: ceph-release-notes: put github repo labels in a global variable
authorNathan Cutler <ncutler@suse.com>
Sun, 26 Mar 2017 16:44:56 +0000 (18:44 +0200)
committerNathan Cutler <ncutler@suse.com>
Sun, 26 Mar 2017 17:38:48 +0000 (19:38 +0200)
Signed-off-by: Nathan Cutler <ncutler@suse.com>
src/script/ceph-release-notes

index 5082bee501ece5d124556b4c18fb5742af8abb1a..291464550f15ca1127703c2d41d39323992c0a36 100755 (executable)
@@ -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: