You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers/api/v1
qwerty287 79275d9db4
Fix 500 on PR files API (#21602) (#21607)
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.

Backport https://github.com/go-gitea/gitea/pull/21602

<!--

Please check the following:

1. Make sure you are targeting the `main` branch, pull requests on
release branches are only allowed for bug fixes.
2. Read contributing guidelines:
https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md
3. Describe what your pull request does and which issue you're targeting
(if any)

-->

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: delvh <dev.lh@web.de>
2 years ago
..
activitypub Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
admin Move some files into models' sub packages (#20262) 3 years ago
misc Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
notify Move some files into models' sub packages (#20262) 3 years ago
org [API] teamSearch show teams with no members if user is admin (#21204) 2 years ago
packages Add support for Vagrant packages (#20930) 3 years ago
repo Fix 500 on PR files API (#21602) (#21607) 2 years ago
settings Make mirror feature more configurable (#16957) 4 years ago
swagger Add API endpoint to get changed files of a PR (#21177) 2 years ago
user Record OAuth client type at registration (#21316) 2 years ago
utils Webhook for Wiki changes (#20219) 3 years ago
api.go Add API endpoint to get changed files of a PR (#21177) 2 years ago
auth.go Remove legacy `+build:` constraint (#19582) 3 years ago
auth_windows.go Let web and API routes have different auth methods group (#19168) 3 years ago