forgejo/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 Move some files into models' sub packages (#20262) 2022-08-25 10:31:57 +08:00
commits.go Add stat to ToCommit function for speed (#21337) 2022-10-06 11:21:04 +08:00
file.go fix hard-coded timeout and error panic in API archive download endpoint (#20925) 2022-08-29 11:45:20 +02:00
fork.go
git_hook.go
git_ref.go Go 1.19 format (#20758) 2022-08-30 21:15:45 -05:00
hook.go Decouple HookTask from Repository (#17940) 2022-10-21 18:21:56 +02:00
hook_test.go Decouple HookTask from Repository (#17940) 2022-10-21 18:21:56 +02:00
issue.go
issue_comment.go
issue_label.go
issue_reaction.go
issue_stopwatch.go
issue_subscription.go
issue_tracked_time.go Go 1.19 format (#20758) 2022-08-30 21:15:45 -05:00
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 Move some files into models' sub packages (#20262) 2022-08-25 10:31:57 +08:00
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.go Fix 500 on PR files API (#21602) 2022-10-26 23:46:11 +08:00
pull_review.go
release.go Move some files into models' sub packages (#20262) 2022-08-25 10:31:57 +08:00
release_attachment.go Move some files into models' sub packages (#20262) 2022-08-25 10:31:57 +08:00
release_tags.go Move some files into models' sub packages (#20262) 2022-08-25 10:31:57 +08:00
repo.go Make external issue tracker regexp configurable via API (#21338) 2022-10-07 20:49:30 +08:00
repo_test.go
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 Move some files into models' sub packages (#20262) 2022-08-25 10:31:57 +08:00
topic.go
transfer.go
tree.go
wiki.go Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00