Browse Source

Changes commit PR prioritization

main
Eric Amodio 2 years ago
parent
commit
599c9b7225
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +1
    -1
      src/plus/github/github.ts

+ 1
- 0
CHANGELOG.md View File

@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
### Fixed
- Fixes Commit Details showing incorrect actions for uncommitted changes
- Fixes prioritization of multiple PRs associated with the same commit to choose a merged PR over others
## [12.2.2] - 2022-09-06

+ 1
- 1
src/plus/github/github.ts View File

@ -608,7 +608,7 @@ export class GitHubApi implements Disposable {
prs.sort(
(a, b) =>
(a.repository.owner.login === owner ? -1 : 1) - (b.repository.owner.login === owner ? -1 : 1) ||
(a.state === 'OPEN' ? -1 : 1) - (b.state === 'OPEN' ? -1 : 1) ||
(a.state === 'MERGED' ? -1 : 1) - (b.state === 'MERGED' ? -1 : 1) ||
new Date(b.updatedAt).getTime() - new Date(a.updatedAt).getTime(),
);
}

Loading…
Cancel
Save