From 8aa28f05f710d367d61dac6f479f3bf197cc2892 Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Thu, 24 Oct 2019 18:29:02 +0200 Subject: [PATCH] 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) --- src/script/build-integration-branch | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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, -- 2.47.3