]> source.dussan.org Git - gitea.git/commit
Fix `/repos/{owner}/{repo}/pulls/{index}/files` endpoint not populating `previous_fil...
authorGiteabot <teabot@gitea.io>
Wed, 11 Sep 2024 23:58:43 +0000 (07:58 +0800)
committerGitHub <noreply@github.com>
Wed, 11 Sep 2024 23:58:43 +0000 (08:58 +0900)
commitb3af359cc6a6451e70ff4b0acbba5741a1f1a4a9
treea1a106c1baf7654379da305561bf0a0d670c7040
parent0629c08a6df6c97129dc22308c85e80500edc9b1
Fix `/repos/{owner}/{repo}/pulls/{index}/files` endpoint not populating `previous_filename` (#32017) (#32028)

Backport #32017 by @charles-plutohealth

---
`status == "rename"` should have read `status == "renamed"`. The typo
means that file.PreviousFilename would never be populated, which e.g.
breaks usage of the Github Action at
https://github.com/dorny/paths-filter.

Co-authored-by: charles-plutohealth <143208583+charles-plutohealth@users.noreply.github.com>
services/convert/convert.go