From: Nathan Cutler Date: Thu, 24 Oct 2019 16:29:02 +0000 (+0200) Subject: build-integration-branch: take PRs in chronological order X-Git-Tag: v14.2.17~28^2~34^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8aa28f05f710d367d61dac6f479f3bf197cc2892;p=ceph.git build-integration-branch: take PRs in chronological order Fixes: https://tracker.ceph.com/issues/42474 Signed-off-by: Nathan Cutler (cherry picked from commit bf564b5f1d23f75917d384ab70894d8dc67d41c3) --- diff --git a/src/script/build-integration-branch b/src/script/build-integration-branch index 3189d85d975..d8a79fec28b 100755 --- a/src/script/build-integration-branch +++ b/src/script/build-integration-branch @@ -20,8 +20,13 @@ with open(os.environ['HOME'] + '/.github_token', 'r') as myfile: token = myfile.readline().strip() # get prs -baseurl = urljoin('https://api.github.com', - 'repos/{repo}/issues?labels={label}&access_token={token}') +baseurl = urljoin('https://api.github.com', ( + 'repos/{repo}/issues?labels={label}' + '&access_token={token}' + '&sort=created' + '&direction=asc' + ) + ) url = baseurl.format( label=label, repo=repo,