Skip to content
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

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

Closed
inbjo opened this issue Dec 5, 2024 · 2 comments
Closed
Labels
Milestone

Comments

@inbjo
Copy link

inbjo commented Dec 5, 2024

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

@inbjo inbjo added the type/bug label Dec 5, 2024
@ExplodingDragon
Copy link
Contributor

ExplodingDragon commented Dec 5, 2024

Duplicate of #30655

@wxiaoguang
Copy link
Contributor

-> Make API "compare" accept commit IDs #32801

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants