Add API endpoint for diff between two refs like GitHub and Bitbucket #10871
Labels
issue/needs-feedback
For bugs, we need more details. For features, the feature must be described in more detail
modifies/api
This PR adds API routes or modifies them
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
GitHub allows
base...head
diff comparison in their API action /compare and appears in their go sdk as CompareCommits withbase
&head
arguments.Bitbucket has a similar API action /diffstat and appears in their go sdk as RepositoriesUsernameRepoSlugDiffstatSpecGet with a 'spec' argument for things like 3a8b42..9ff173.
It would be great if someone will able to add this feature. My current use-case is analyzing the change-sets on each commit in CI.
The text was updated successfully, but these errors were encountered: