@@ -38,7 +38,7 @@ public class PullRequestSessionService : IPullRequestSessionService
3838 {
3939 static readonly ILogger log = LogManager . ForContext < PullRequestSessionService > ( ) ;
4040 static ICompiledQuery < PullRequestDetailModel > readPullRequest ;
41- static ICompiledQuery < IEnumerable < LastCommitAdapter > > readCheckSuites ;
41+ static ICompiledQuery < IEnumerable < LastCommitAdapter > > readCommitStatuses ;
4242 static ICompiledQuery < ActorModel > readViewer ;
4343
4444 readonly IGitService gitService ;
@@ -359,9 +359,9 @@ public virtual async Task<PullRequestDetailModel> ReadPullRequestDetail(HostAddr
359359
360360 private async Task < LastCommitAdapter > GetPullRequestLastCommitAdapter ( HostAddress address , string owner , string name , int number )
361361 {
362- if ( readCheckSuites == null )
362+ if ( readCommitStatuses == null )
363363 {
364- readCheckSuites = new Query ( )
364+ readCommitStatuses = new Query ( )
365365 . Repository ( Var ( nameof ( owner ) ) , Var ( nameof ( name ) ) )
366366 . PullRequest ( Var ( nameof ( number ) ) ) . Commits ( last : 1 ) . Nodes . Select (
367367 commit => new LastCommitAdapter
@@ -389,7 +389,7 @@ private async Task<LastCommitAdapter> GetPullRequestLastCommitAdapter(HostAddres
389389 } ;
390390
391391 var connection = await graphqlFactory . CreateConnection ( address ) ;
392- var result = await connection . Run ( readCheckSuites , vars ) ;
392+ var result = await connection . Run ( readCommitStatuses , vars ) ;
393393 return result . First ( ) ;
394394 }
395395
0 commit comments