Open
Description
Describe the bug
for (const commit of danger.gitlab.commits) {
commit.parent_ids; // <- this is always an empty array
}
To Reproduce
This MR compares results from danger's parent_ids
and git CLI(the expected result).
https://gitlab.com/frantic1048/danger-empty-parent-ids/-/merge_requests/1
Expected behavior
A commit's parent_ids
should contain all parent ids.
Your Environment
software | version |
---|---|
danger.js | 11.3.1 |
node | 20.10.0 |
pnpm | 8.12.0 |
Operating System | node@sha256:445acd9b2ef7e9de665424053bf95652e0b8995ef36500557d48faf29300170a |
Additional context
This is actually an upstream issue of GitLab: Commit parent IDs list is empty in some REST API's.
To ensure a smoother experience, we may implement a workaround in danger.