From 2845a93f4c56358faedd9562bc887a1716995565 Mon Sep 17 00:00:00 2001 From: Robert Date: Mon, 22 Jun 2020 11:27:50 +0100 Subject: [PATCH] Fixing sorting of PRs --- .github/update-release-branch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/update-release-branch.py b/.github/update-release-branch.py index 2297ee596..15620495e 100644 --- a/.github/update-release-branch.py +++ b/.github/update-release-branch.py @@ -45,8 +45,8 @@ def open_pr(repo, all_commits, short_master_sha, branch_name): print('Found ' + str(len(commits_without_pull_requests)) + ' commits not in a pull request') # Sort PRs and commits by age - sorted(pull_requests, key=lambda pr: pr.number) - sorted(commits_without_pull_requests, key=lambda c: c.commit.author.date) + pull_requests = sorted(pull_requests, key=lambda pr: pr.number) + commits_without_pull_requests = sorted(commits_without_pull_requests, key=lambda c: c.commit.author.date) # Start constructing the body text body = 'Merging ' + short_master_sha + ' into ' + LATEST_RELEASE_BRANCH