Skip to content

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

Closed
@rafi

Description

@rafi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detailmodifies/apiThis PR adds API routes or modifies themtype/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions