]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
script/build-integration-branch: print pr url list with titles 17426/head
authorSage Weil <sage@redhat.com>
Fri, 1 Sep 2017 16:26:39 +0000 (12:26 -0400)
committerSage Weil <sage@redhat.com>
Fri, 1 Sep 2017 16:26:39 +0000 (12:26 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/script/build-integration-branch

index 9ac3f0c5ff39ab283eb9a87bd294e298e48632e3..3e13ffb323fc28383c2758b3bc2ea7a38e2e6b56 100755 (executable)
@@ -25,11 +25,14 @@ j = json.loads(r.text or r.content)
 print("--- found %d issues tagged with %s" % (len(j), label))
 
 prs = []
+prtext = []
 for issue in j:
     if 'pull_request' not in issue:
         continue
     r = requests.get(issue['pull_request']['url'] + '?access_token=' + token)
-    prs.append(json.loads(r.text or r.content))
+    pr = json.loads(r.text or r.content)
+    prs.append(pr)
+    prtext.append(pr['html_url'] + ' - ' + pr['title'])
 print("--- queried %s prs" % len(prs))
 
 # name branch
@@ -50,5 +53,6 @@ for pr in prs:
           pr['head']['repo']['clone_url'],
           pr['head']['ref']
     ])
-print('--- done')
+print('--- done. these PRs were included:')
+print('\n'.join(prtext))
 print('--- perhaps you want to: make && ctest -j12 && git push ci %s' % branch)