Skip to content

Fix 500 on PR files API#21602

Merged
lunny merged 5 commits intogo-gitea:mainfrom
qwerty287:fix-pr-files
Oct 26, 2022
Merged

Fix 500 on PR files API#21602
lunny merged 5 commits intogo-gitea:mainfrom
qwerty287:fix-pr-files

Conversation

@qwerty287
Copy link
Contributor

Fixes an 500 error/panic if using the changed PR files API with pages that should return empty lists because there are no items anymore. start-end is then < 0 which ends in panic.

Loading
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. outdated/backport/v1.18 This PR should be backported to Gitea 1.18 type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants