List with commits is not complete, not sure if this is a bug #1432
Unanswered
jpbroeders
asked this question in
Q&A
Replies: 1 comment 3 replies
|
I doubt you are doing anything wrong, but there might be an issue with the say the commits are associated with the PR for your use case. The logic used is simply a match of commit IDs allPullRequests.forEach(pr => {
if (pr.lastMergeCommit) {
if (pr.lastMergeCommit.commitId === commit.id) {
agentApi.logInfo(`- PR ${pr.pullRequestId} matches the commit ${commit.id}`);
globalPullRequests.push(<EnrichedGitPullRequest>pr);
}
} else {
agentApi.logInfo(`- PR ${pr.pullRequestId} does not have a lastMergeCommit`);
}); |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I have a situation where I have a pullRequest object with some associatedCommits, and one of those associatedCommits isn't in the commits array which is on the same level of the pullRequests.
In my release notes I need to search for every associatedCommit in the seperate list of commits for more detailed data about the path.
I'm not sure if I'm doing something wrong, but in Azure DevOps everything seems ok. I also use the testconsole and enabnle all extra options in the settings, but still I can't match one of the associatedCommits with an item in the commits array.
Is it maybe a bug? Or do I something wrong?
All reactions