From d646fa7010c5575199ff6089b591c0300a551b7e Mon Sep 17 00:00:00 2001 From: remyvdwereld <86827854+remyvdwereld@users.noreply.github.com> Date: Mon, 19 Feb 2024 12:01:51 +0100 Subject: [PATCH] Fix undefined state --- .github/workflows/combine-prs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/combine-prs.yml b/.github/workflows/combine-prs.yml index c6478c300..0f4a20e29 100644 --- a/.github/workflows/combine-prs.yml +++ b/.github/workflows/combine-prs.yml @@ -74,7 +74,7 @@ jobs: }; const result = await github.graphql(stateQuery, vars); const [{ commit }] = result.repository.pullRequest.commits.nodes; - const state = commit.statusCheckRollup.state + const state = commit.statusCheckRollup ? commit.statusCheckRollup.state : null; console.log('Validating status: ' + state); if(state != 'SUCCESS') { console.log('Discarding ' + branch + ' with status ' + state);