@@ -410,7 +410,7 @@ public virtual async Task<PullRequestDetailModel> ReadPullRequestDetail(
410
410
async ( ) => await apiClient . GetPullRequestFiles ( owner , name , number ) . ToList ( ) ) ;
411
411
412
412
var lastCommitModel = await log . TimeAsync ( nameof ( GetPullRequestLastCommitAdapter ) ,
413
- ( ) => GetPullRequestLastCommitAdapter ( address , owner , name , number ) ) ;
413
+ ( ) => GetPullRequestLastCommitAdapter ( address , owner , name , number , refresh ) ) ;
414
414
415
415
result . Statuses = ( IReadOnlyList < StatusModel > ) lastCommitModel . Statuses ?? Array . Empty < StatusModel > ( ) ;
416
416
@@ -820,7 +820,7 @@ Task<IRepository> GetRepository(LocalRepositoryModel repository)
820
820
return Task . Run ( ( ) => gitService . GetRepository ( repository . LocalPath ) ) ;
821
821
}
822
822
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 )
824
824
{
825
825
ICompiledQuery < IEnumerable < LastCommitAdapter > > query ;
826
826
if ( address . IsGitHubDotCom ( ) )
@@ -911,7 +911,7 @@ async Task<LastCommitAdapter> GetPullRequestLastCommitAdapter(HostAddress addres
911
911
} ;
912
912
913
913
var connection = await graphqlFactory . CreateConnection ( address ) ;
914
- var result = await connection . Run ( query , vars ) ;
914
+ var result = await connection . Run ( query , vars , refresh ) ;
915
915
return result . First ( ) ;
916
916
}
917
917
0 commit comments