You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure why this happenes but I couldn't find this PR (1038) in all of our PRs and repos.
Therefore, I guess this PR becomes unavailable becasuse its associated repo was deleted.
To Reproduce
Not sure how
Expected behavior
Should bypass the commitId access if the e.lastMergeCommit does not exists
Screenshots
N/A
Logs
2020-12-17T06:30:16.4837493Z Found 183 Azure DevOps PRs in the repo
2020-12-17T06:30:16.4842879Z Checking for PRs associated with the commit 215d95a9b2f88ab6d0a8b5b7ada1f7b526ed940e
2020-12-17T06:30:16.4843475Z - PR 1170 matches the commit 215d95a9b2f88ab6d0a8b5b7ada1f7b526ed940e
2020-12-17T06:30:16.4843929Z - PR 1038 does not have a lastMergeCommit
2020-12-17T06:30:16.4844213Z Checking for PRs associated with the commit 0968c4bebedb9affc78a42ba5d39ff9fd8e69184
2020-12-17T06:30:16.4844639Z - PR 1038 does not have a lastMergeCommit
2020-12-17T06:30:16.4845073Z Enriching known Pull Requests
2020-12-17T06:30:16.7970936Z ##[debug]Checking for tags for 1170
2020-12-17T06:30:16.9202928Z ##[debug]Added 0 work items for 1170
2020-12-17T06:30:17.0463609Z ##[debug]Added 1 commits for 1170, note this includes commits on the PR source branch not associated directly with the build
2020-12-17T06:30:17.0464600Z Checking the CS associated with the PRs to see if they are inturn associated PRs
2020-12-17T06:30:17.0496763Z ##[error]TypeError: Cannot read property 'commitId' of undefined
2020-12-17T06:30:17.0506378Z ##[debug]Processed: ##vso[task.issue type=error;]TypeError: Cannot read property 'commitId' of undefined
What is the issue see:
XplatGenerateReleaseNotes:3.35.7
The text was updated successfully, but these errors were encountered:
Describe the bug
This bug is related to
XplatGenerateReleaseNotes:v3.*
(exact:3.35.7
)When enabling the
Advanced > Get Indirect Pull Requests
, the following error raised.I think this happens because the
var foundPR = allPullRequests.find( e => e.lastMergeCommit.commitId === cs.commitId);
doesn't check the existence ofe.lastMergeCommit
, whereas the other placeif (pr.lastMergeCommit) { if (pr.lastMergeCommit.commitId === commit.id) {
does check.I'm not sure why this happenes but I couldn't find this PR (
1038
) in all of our PRs and repos.Therefore, I guess this PR becomes unavailable becasuse its associated repo was deleted.
To Reproduce
Not sure how
Expected behavior
Should bypass the
commitId
access if thee.lastMergeCommit
does not existsScreenshots
N/A
Logs
What is the issue see:
XplatGenerateReleaseNotes:3.35.7
The text was updated successfully, but these errors were encountered: