From: Sage Weil Date: Fri, 1 Sep 2017 16:26:39 +0000 (-0400) Subject: script/build-integration-branch: print pr url list with titles X-Git-Tag: v12.2.6~144^2~3 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a64c8ad93c502257839da32ac557bf378582179a;p=ceph.git script/build-integration-branch: print pr url list with titles Signed-off-by: Sage Weil (cherry picked from commit 5916683c52fe6c1d54e91415ba0c4af790d48485) --- diff --git a/src/script/build-integration-branch b/src/script/build-integration-branch index 9ac3f0c5ff39a..3e13ffb323fc2 100755 --- a/src/script/build-integration-branch +++ b/src/script/build-integration-branch @@ -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)