]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
build-integration-branch: take PRs in chronological order
authorNathan Cutler <ncutler@suse.com>
Thu, 24 Oct 2019 16:29:02 +0000 (18:29 +0200)
committerNathan Cutler <ncutler@suse.com>
Thu, 24 Oct 2019 16:34:47 +0000 (18:34 +0200)
Fixes: https://tracker.ceph.com/issues/42474
Signed-off-by: Nathan Cutler <ncutler@suse.com>
src/script/build-integration-branch

index 3189d85d9751e24865faf757aeadc3784d59e469..d8a79fec28b47c18373757d0ccbc103f81a1a8a7 100755 (executable)
@@ -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,