0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-20 11:29:06 +01:00
gitea/routers/api/v1/repo
Lunny Xiao cf2d332443
Refactor find forks and fix possible bugs that weak permissions check (#32528) (#32547)
Backport #32528

- Move models/GetForks to services/FindForks
- Add doer as a parameter of FindForks to check permissions
- Slight performance optimization for get forks API with batch loading
of repository units
- Add tests for forking repository to organizations

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-11-19 04:08:32 +00:00
..
action.go fix(api): owner ID should be zero when created repo secret (#31715) (#31811) 2024-08-10 00:21:51 +08:00
avatar.go
blob.go
branch.go
collaborators.go
commits.go Fix bug in getting merged pull request by commit (#32079) (#32117) 2024-09-25 00:12:02 +08:00
compare.go
file.go Fix missing signature key error when pulling Docker images with SERVE_DIRECT enabled (#32365) (#32397) 2024-11-01 03:53:59 +00:00
fork.go Refactor find forks and fix possible bugs that weak permissions check (#32528) (#32547) 2024-11-19 04:08:32 +00:00
git_hook.go
git_ref.go
hook_test.go
hook.go
issue_attachment.go
issue_comment_attachment.go
issue_comment.go
issue_dependency.go
issue_label.go
issue_pin.go
issue_reaction.go
issue_stopwatch.go
issue_subscription.go
issue_tracked_time.go
issue.go API: enhance SearchIssues swagger docs (#32208) (#32298) 2024-10-21 08:32:34 +08:00
key.go
label.go
language.go
main_test.go
migrate.go
milestone.go
mirror.go
notes.go
patch.go
pull_review.go Fix the logic of finding the latest pull review commit ID (#32139) (#32165) 2024-10-01 13:10:03 +09:00
pull.go Fix 500 error when state params is set when editing issue/PR by API (#31880) (#31952) 2024-09-01 18:38:10 +00:00
release_attachment.go
release_tags.go
release.go Handle invalid target when creating releases using API (#31841) (#32043) 2024-09-17 02:23:40 +00:00
repo_test.go
repo.go Fix bug when a token is given public only (#32204) (#32218) 2024-10-09 02:16:37 +00:00
star.go
status.go
subscriber.go
tag.go
teams.go
topic.go
transfer.go
tree.go
wiki.go