Skip to content

Commit

Permalink
Merge pull request ceph#31132 from smithfarm/wip-42474
Browse files Browse the repository at this point in the history
build-integration-branch: take PRs in chronological order
  • Loading branch information
yuriw authored Oct 24, 2019
2 parents 8b56c45 + ceb3027 commit 7b4f9a0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/script/build-integration-branch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import print_function

Expand All @@ -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,
Expand Down

0 comments on commit 7b4f9a0

Please sign in to comment.