8000 Passing through the call to refresh · github/VisualStudio@c3b597f · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit c3b597f

Browse files
Passing through the call to refresh
1 parent ff484ab commit c3b597f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/GitHub.InlineReviews/Services/PullRequestSessionService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ public virtual async Task<PullRequestDetailModel> ReadPullRequestDetail(
410410
async () => await apiClient.GetPullRequestFiles(owner, name, number).ToList());
411411

412412
var lastCommitModel = await log.TimeAsync(nameof(GetPullRequestLastCommitAdapter),
413-
() => GetPullRequestLastCommitAdapter(address, owner, name, number));
413+
() => GetPullRequestLastCommitAdapter(address, owner, name, number, refresh));
414414

415415
result.Statuses = (IReadOnlyList<StatusModel>)lastCommitModel.Statuses ?? Array.Empty<StatusModel>();
416416

@@ -820,7 +820,7 @@ Task<IRepository> GetRepository(LocalRepositoryModel repository)
820820
return Task.Run(() => gitService.GetRepository(repository.LocalPath));
821821
}
822822

823-
async Task<LastCommitAdapter> GetPullRequestLastCommitAdapter(HostAddress address, string owner, string name, int number)
823+
async Task<LastCommitAdapter> GetPullRequestLastCommitAdapter(HostAddress address, string owner, string name, int number, bool refresh)
824824
{
825825
ICompiledQuery<IEnumerable<LastCommitAdapter>> query;
826826
if (address.IsGitHubDotCom())
@@ -911,7 +911,7 @@ async Task<LastCommitAdapter> GetPullRequestLastCommitAdapter(HostAddress addres
911911
};
912912

913913
var connection = await graphqlFactory.CreateConnection(address);
914-
var result = await connection.Run(query, vars);
914+
var result = await connection.Run(query, vars, refresh);
915915
return result.First();
916916
}
917917

0 commit comments

Comments
 (0)
0