-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
routers/api/v1/repo /pull.go: GetPullRequestCommits: empty Files list #27481
Labels
Comments
msantos
added a commit
to msantos/gitea
that referenced
this issue
Oct 6, 2023
wxiaoguang
added a commit
that referenced
this issue
Oct 9, 2023
Fixes #27481 ---- Co-authored-by: silverwind <[email protected]> Co-authored-by: wxiaoguang <[email protected]>
GiteaBot
pushed a commit
to GiteaBot/gitea
that referenced
this issue
Oct 9, 2023
Fixes go-gitea#27481 ---- Co-authored-by: silverwind <[email protected]> Co-authored-by: wxiaoguang <[email protected]>
silverwind
added a commit
that referenced
this issue
Oct 9, 2023
Backport #27483 by @msantos Fixes #27481 --- Patch tested: ```json [ { "url": "http://100.115.92.198:9292/api/v1/repos/msantos/test/git/commits/7664dcb44167e0f9efd994e4ca6a9164694adc27", "sha": "7664dcb44167e0f9efd994e4ca6a9164694adc27", "created": "2023-10-06T09:57:08-04:00", "html_url": "http://100.115.92.198:9292/msantos/test/commit/7664dcb44167e0f9efd994e4ca6a9164694adc27", ... "files": [ { "filename": "README.md", "status": "modified" } ], "stats": { "total": 2, "additions": 2, "deletions": 0 } } ] ``` Co-authored-by: Michael Santos <[email protected]> Co-authored-by: silverwind <[email protected]> Co-authored-by: wxiaoguang <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
The gitea API now returns an empty file list for commits:
https://try.gitea.io/api/v1/repos/msantos/test/pulls/1/commits
The file list is available using the files endpoint:
https://try.gitea.io/api/v1/repos/msantos/test/pulls/1/files
Untested patch:
Gitea Version
1.20.5
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Database
SQLite
The text was updated successfully, but these errors were encountered: