add hints

This commit is contained in:
OpportunityLiu
2020-03-31 22:59:54 +08:00
Unverified
parent 7a6538cab8
commit fb01b4e3c8
5 changed files with 53 additions and 34 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ async function selectPr(pr: number): Promise<Version> {
const versions = await lsRemote();
if (pr in versions.pull) {
const prheads = versions.pull[pr];
const sha = prheads.merge ?? prheads.head;
const sha = prheads.head;
if (sha) {
return new VersionImpl(`#${pr}`, sha, 'pull', `pull request #${pr}`);
}