Skip to content

Commit

Permalink
Merge pull request #2435 from Amsterdam/github-action/combined-pr
Browse files Browse the repository at this point in the history
Fix undefined state
  • Loading branch information
remyvdwereld authored Feb 19, 2024
2 parents 83a370f + d646fa7 commit f387f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/combine-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f387f10

Please sign in to comment.