Skip to content

Commit 8e098cb

Browse files
Merge pull request #72 from github/release-sorting
Fixing sorting of PRs
2 parents 8a67191 + beedd31 commit 8e098cb

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_main_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_main_sha + ' into ' + LATEST_RELEASE_BRANCH

0 commit comments

Comments
 (0)