Skip to content

Add API endpoint for diff between two refs like GitHub and Bitbucket #10871

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rafi opened this issue Mar 28, 2020 · 2 comments
Closed

Add API endpoint for diff between two refs like GitHub and Bitbucket #10871

rafi opened this issue Mar 28, 2020 · 2 comments
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.

Comments

@rafi
Copy link

rafi commented Mar 28, 2020

GitHub allows base...head diff comparison in their API action /compare and appears in their go sdk as CompareCommits with base & 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.

@guillep2k guillep2k added 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. labels Mar 29, 2020
@Coding-Kiwi
Copy link

Yes please! Maybe also include this data in commit webhooks?

@wxiaoguang
Copy link
Contributor

Make API "compare" accept commit IDs #32801

Does it resolve your issue?

@wxiaoguang wxiaoguang added the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label Dec 14, 2024
@rafi rafi closed this as completed Dec 14, 2024
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Mar 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.
Projects
None yet
Development

No branches or pull requests

4 participants