[go: up one dir, main page]

Skip to content

Add endpoint to GET additions and deletions of Merge Request

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Problem to solve

It's not possible to get additions and deletions of Merge Request, but it is possible to get these stats for Commit - https://docs.gitlab.com/ee/api/commits.html#get-a-single-commit (which I don't need).

Screenshot_2020-02-17_at_10.02.20

Further details

Due to this it's not possible to measure the size of MR (I measure it here in our project - it's possible for GitHub and Bitbucket https://github.com/DXHeroes/dx-scanner/blob/master/src/practices/LanguageIndependent/ThinPullRequestsPractice.ts )

The reason I want to measure it is the best practice to have thin Merge Requests https://medium.com/@hugooodias/the-anatomy-of-a-perfect-pull-request-567382bb6067

Proposal

Gitlab already has the information about additions and deletions (see print screen from my Gitlab), so please, add the endpoint so it is possible to get this information through the API.

Screenshot_2020-02-17_at_10.14.47

Thank you very much for your time and great work!

Edited by 🤖 GitLab Bot 🤖