File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export interface IssueInfo {
8181
8282export interface CommitInfo {
8383 commit : {
84- statusCheckRollup : StatusCheckRollupInfo
84+ statusCheckRollup ? : StatusCheckRollupInfo
8585 }
8686}
8787
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ export function isPendingMergePr(
66 condition : Condition
77) : boolean {
88 const check = pr . commits . nodes [ 0 ] . commit . statusCheckRollup
9+ if ( ! check ) return false
910 const checkNodes = check . contexts . nodes
1011 return (
1112 isSatisfyBasicConditionPr ( pr , condition ) &&
@@ -52,6 +53,7 @@ function isStatusChecksSuccess(
5253 condition : Condition
5354) : boolean {
5455 const check = pr . commits . nodes [ 0 ] . commit . statusCheckRollup
56+ if ( ! check ) return false
5557 if ( condition . requiredStatusChecks . length ) {
5658 const nodeChecks = new Map (
5759 check . contexts . nodes . map ( i => [ i . name || i . context , i ] )
You can’t perform that action at this time.
0 commit comments