Question: Is there something similar to the GitHub Compare API
When using Octokit for querying GitHub, it is possible to do something like:
var gitHubClientRepositoryCommitsCompare = await _gitHubClient.Repository.Commit.Compare(user, repository, "master", currentMilestone.Title).ConfigureAwait(false);
return gitHubClientRepositoryCommitsCompare.AheadBy;
Which returns the number of commits between the current milestone/tag and the master branch. Do you know if there is something similar in the GitLab API for getting the same information?
The API is there: https://docs.gitlab.com/ee/api/repositories.html#compare-branches-tags-or-commits Yet not added to this library.
@casz I only started using this library yesterday, and I haven't started digging into the code yet. Having the ability to use this portion of the GitLab API would be something that I would really like to see added to this library. Can you please give me some pointers on what code needs to be added, and I would be happy to submit a PR to get it added. Thanks.
We could properly benefit from consolidating the repository specific api into a repository client at moment they are a bit spread out: https://github.com/nmklotas/GitLabApiClient/search?q=repository+filename%3Aclient&unscoped_q=repository+filename%3Aclient