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

Fix /repos/{owner}/{repo}/pulls/{index}/files endpoint not populating previous_filename #32017

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

charles-plutohealth
Copy link
Contributor

@charles-plutohealth charles-plutohealth commented Sep 9, 2024


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.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Sep 9, 2024
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 9, 2024
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Sep 9, 2024
@lunny lunny added the backport/v1.22 This PR should be backported to Gitea 1.22 label Sep 9, 2024
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Sep 9, 2024
@delvh
Copy link
Member

delvh commented Sep 9, 2024

status == "rename" should have read status == "renamed"

Huh?
I don't understand the relationship between this sentence and the contents of the PR.

@yp05327
Copy link
Contributor

yp05327 commented Sep 10, 2024

status == "rename" should have read status == "renamed"

Huh? I don't understand the relationship between this sentence and the contents of the PR.

image
I think this is a typo.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Sep 10, 2024
Copy link
Member

@delvh delvh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, now I see what you mean.
I didn't see that you got rid of that if, so that's why I was confused.

@charles-plutohealth
Copy link
Contributor Author

failures in db-tests / test-mssql appear to be unrelated, maybe solved with a rerun?

@lunny lunny added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Sep 10, 2024
@GiteaBot
Copy link
Contributor

@charles-plutohealth please fix the merge conflicts. 🍵

@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Sep 10, 2024
@lunny lunny added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Sep 11, 2024
@lunny lunny merged commit 7c6edf1 into go-gitea:main Sep 11, 2024
26 checks passed
@GiteaBot GiteaBot added this to the 1.24.0 milestone Sep 11, 2024
GiteaBot pushed a commit to GiteaBot/gitea that referenced this pull request Sep 11, 2024
…ng `previous_filename` (go-gitea#32017)

---
`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.
@GiteaBot GiteaBot added the backport/done All backports for this PR have been created label Sep 11, 2024
@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Sep 11, 2024
yp05327 pushed a commit that referenced this pull request Sep 11, 2024
…ng `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 <[email protected]>
zjjhot added a commit to zjjhot/gitea that referenced this pull request Sep 12, 2024
* giteaofficial/main:
  [skip ci] Updated translations via Crowdin
  Failed authentications are logged to level Warning (go-gitea#32016)
  Fix `/repos/{owner}/{repo}/pulls/{index}/files` endpoint not populating `previous_filename` (go-gitea#32017)
  Support allowed hosts for migrations to work with proxy (go-gitea#32025)
  Support migration from AWS CodeCommit (go-gitea#31981)
  bump to go 1.23 (go-gitea#31855)
  Enable compression for Actions logs by default (go-gitea#32013)
  Save initial signup information for users to aid in spam prevention (go-gitea#31852)
  Increase `cacheContextLifetime` to reduce false reports (go-gitea#32011)
@yp05327 yp05327 modified the milestones: 1.24.0, 1.23.0 Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/done All backports for this PR have been created backport/v1.22 This PR should be backported to Gitea 1.22 lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/go Pull requests that update Go code size/S Denotes a PR that changes 10-29 lines, ignoring generated files. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants