Skip to content

Commit 2845a93

Browse files
Fixing sorting of PRs
1 parent 74f864b commit 2845a93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/update-release-branch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def open_pr(repo, all_commits, short_master_sha, branch_name):
4545
print('Found ' + str(len(commits_without_pull_requests)) + ' commits not in a pull request')
4646

4747
# Sort PRs and commits by age
48-
sorted(pull_requests, key=lambda pr: pr.number)
49-
sorted(commits_without_pull_requests, key=lambda c: c.commit.author.date)
48+
pull_requests = sorted(pull_requests, key=lambda pr: pr.number)
49+
commits_without_pull_requests = sorted(commits_without_pull_requests, key=lambda c: c.commit.author.date)
5050

5151
# Start constructing the body text
5252
body = 'Merging ' + short_master_sha + ' into ' + LATEST_RELEASE_BRANCH

0 commit comments

Comments
 (0)