@@ -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