Identify the first commit & timestamp associated with a Pull Request
exploring
T
Tomasz Skora
Add support for reliably identifying the earliest commit & timestamp that belongs to a pull request across GitHub, GitLab, and Azure DevOps, as this is required to calculate Lead Time for Changes regarding DORA metrics.
P
Prabhat Kumar
We have the same need and ended up enhancing the gitlab integration to get the total number of commits, first commit date and also return list of commits to further process as needed in mapping JQ
·
·
Reply
Gur Shafriri
Prabhat Kumar : Thanks for sharing! Can you elaborate in what way you enhance the integration?
·
·
Reply
P
Prabhat Kumar
Gur Shafriri : We extended the get_project_merge_requests method in gitlab_client to also enrich with MR commits. Attached some screenshots. Note- __commits is an object with all commits and __commits_count is total commits in that MR. Also shared the mapping we have on our side
Photo Viewer
View photos in a modal