Skip to content

Commit

Permalink
fix bitbucket invalid response
Browse files Browse the repository at this point in the history
  • Loading branch information
shiraz-mian committed May 8, 2024
1 parent 8a2ced0 commit 5936845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/bitbucket/bitbucket-pipelines.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class BitbucketPipelines extends BaseJsonService {
const values = data.values.filter(
value => value.state && value.state.name === 'COMPLETED',
)
if (values.length > 0) {
if (values.length > 0 && values[0].state.result?.name) {
return values[0].state.result.name
}
return 'never built'
Expand Down

0 comments on commit 5936845

Please sign in to comment.