-
-
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
api: GetPullRequestCommits: return file list #27483
Conversation
Was this a regression? |
Yes, I run some status checks using |
Thanks, maybe you can also check the 1.20 and 1.21 branches so we know how far to backport this. |
Introduced in 1dd83db released in 1.20. I see the above commit made returning files/verification optional for the commit endpoint by using a parameter:
The commit changed 3 endpoints: commit, pull and notes.
Is it ok to have pulls always return files or should it be a parameter? |
Update the pulls and notes endpoints: * reenable returning files and verification * optionally disable using a parameter
Updated to:
|
Endpoint parameter docs updated using go-gitea@1dd83db
Given that previous |
1dd83db added the new The change in this PR:
The second item is unrelated to #27481 and could be dropped or split into a separate PR. Sorry for any confusion! |
Fixes go-gitea#27481 ---- Co-authored-by: silverwind <[email protected]> Co-authored-by: wxiaoguang <[email protected]>
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]>
* giteaofficial/main: Respect SSH.KeygenPath option when calculating ssh key fingerprints (go-gitea#27536) Remove max-width and add hide text overflow (go-gitea#27359) Fix `environment-to-ini` inherited key bug (go-gitea#27543) Improve docs about register/run as a service (go-gitea#27461) api: GetPullRequestCommits: return file list (go-gitea#27483) switch to using official AWS step in release nightly (go-gitea#27532) Improve file history UI and fix URL escaping bug (go-gitea#27531) Improve dropdown's behavior when there is a search input in menu (go-gitea#27526) Simplify `contrib/backport` (go-gitea#27520) Add docs section for sub-paths with the container registry (go-gitea#27505) Document our new labeling strategy (go-gitea#27523) [skip ci] Updated translations via Crowdin Restore warning commit status (go-gitea#27504) Update labeler to match new labeling system (go-gitea#27525) Apply to become a maintainer (go-gitea#27522) Remove unnecessary desc for openssh key cron task (go-gitea#27515) Tweak labeler config (go-gitea#27502) Add hover background to wiki list page (go-gitea#27507) [FIX] missing ctx in new_form (go-gitea#27514)
Fixes #27481
Patch tested: