Skip to content

Commit

Permalink
#175 Fixed a bug that caused an error when no pull request informatio…
Browse files Browse the repository at this point in the history
…n were found linked in an issue.
  • Loading branch information
martan001 committed Feb 4, 2024
1 parent 898cace commit 9fab525
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/core/provider/jira.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ class Jira {
log('getMergeRequests(%o)', issueId);

return this.request('dev-status/latest/issue/summary?issueId=' + issueId).then((developmentInformation) => {
const pullrequests = developmentInformation.pullrequest;
const pullrequests = developmentInformation?.pullrequest;

if (pullrequests.overall.count !== 0) {
if (pullrequests && pullrequests.overall.count !== 0) {
const promises: Promise<any>[] = [];

for (const [key, value] of Object.entries(pullrequests.byInstanceType)) {
Expand Down

0 comments on commit 9fab525

Please sign in to comment.