mirror of
https://github.com/ceph/ceph
synced 2025-03-06 00:10:04 +00:00
Merge pull request #17426 from liewegas/wip-integration
script/build-integration-branch: print pr url list with titles Reviewed-by: Yuri Weinstein <yweinstei@redhat.com>
This commit is contained in:
commit
0dbd0b9def
@ -25,11 +25,14 @@ j = json.loads(r.text or r.content)
|
|||||||
print("--- found %d issues tagged with %s" % (len(j), label))
|
print("--- found %d issues tagged with %s" % (len(j), label))
|
||||||
|
|
||||||
prs = []
|
prs = []
|
||||||
|
prtext = []
|
||||||
for issue in j:
|
for issue in j:
|
||||||
if 'pull_request' not in issue:
|
if 'pull_request' not in issue:
|
||||||
continue
|
continue
|
||||||
r = requests.get(issue['pull_request']['url'] + '?access_token=' + token)
|
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))
|
print("--- queried %s prs" % len(prs))
|
||||||
|
|
||||||
# name branch
|
# name branch
|
||||||
@ -50,5 +53,6 @@ for pr in prs:
|
|||||||
pr['head']['repo']['clone_url'],
|
pr['head']['repo']['clone_url'],
|
||||||
pr['head']['ref']
|
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)
|
print('--- perhaps you want to: make && ctest -j12 && git push ci %s' % branch)
|
||||||
|
Loading…
Reference in New Issue
Block a user