Skip to content

The interface to get submission comparison information is not as expected #32723

Closed
@inbjo

Description

@inbjo

Description

Hi, everyone.
I tried to use this API interface /repos/{owner}/{repo}/compare/{basehead}

The basehead parameter I passed into branch 1... Branch 2 returns normal results, but I pass in two different commit sha1 hashes from the same branch and it returns 404.

2024-12-05_15-45

I want to use this interface to get the files modified between two commit records under the same branch. But the result is not what I expected this seems to be a bug. if I am not using it the right way please let me know, thanks!

Gitea Version

1.22.3

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

2.38.1

Operating System

centos7

How are you running Gitea?

Managing services with systemd via officially compiled binaries

Database

MySQL/MariaDB

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions