0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-08 03:09:25 +01:00
gitea/routers/api/v1/repo
qwerty287 8430f738e2
Fix 500 on PR files API (#21602)
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.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: delvh <dev.lh@web.de>
2022-10-26 23:46:11 +08:00
..
blob.go
branch.go
collaborators.go
commits.go Add stat to ToCommit function for speed (#21337) 2022-10-06 11:21:04 +08:00
file.go
fork.go
git_hook.go
git_ref.go
hook_test.go Decouple HookTask from Repository (#17940) 2022-10-21 18:21:56 +02:00
hook.go Decouple HookTask from Repository (#17940) 2022-10-21 18:21:56 +02:00
issue_comment.go
issue_label.go
issue_reaction.go
issue_stopwatch.go
issue_subscription.go
issue_tracked_time.go
issue.go
key.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2022-10-24 20:29:17 +01:00
label.go
language.go
main_test.go
migrate.go
milestone.go
mirror.go
notes.go Add stat to ToCommit function for speed (#21337) 2022-10-06 11:21:04 +08:00
patch.go
pull_review.go
pull.go Fix 500 on PR files API (#21602) 2022-10-26 23:46:11 +08:00
release_attachment.go
release_tags.go
release.go
repo_test.go
repo.go Make external issue tracker regexp configurable via API (#21338) 2022-10-07 20:49:30 +08:00
star.go
status.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2022-10-24 20:29:17 +01:00
subscriber.go
tag.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2022-10-24 20:29:17 +01:00
teams.go
topic.go
transfer.go
tree.go
wiki.go