gitea/services/repository
Lunny Xiao fe49cb0243
Fix get reviewers' bug (#32415)
This PR rewrites `GetReviewer` function and move it to service layer.

Reviewers should not be watchers, so that this PR removed all watchers
from reviewers. When the repository is under an organization, the pull
request unit read permission will be checked to resolve the bug of
#32394

Fix #32394
2024-11-22 10:44:48 -05:00
..
archiver Remove transaction for archive download (#32186) 2024-11-15 12:04:20 +08:00
commitstatus Add new event commit status creation and webhook implementation (#27151) 2024-11-07 06:41:49 +00:00
files Fix git error handling (#32401) 2024-11-02 11:20:22 +00:00
adopt.go Move AddCollabrator and CreateRepositoryByExample to service layer (#32419) 2024-11-07 11:28:11 +08:00
adopt_test.go Reduce integration test overhead (#32475) 2024-11-14 19:28:46 +00:00
avatar.go Improve avatar uploading / resizing / compressing, remove Fomantic card module (#24653) 2023-05-13 20:59:11 +02:00
avatar_test.go Use context parameter in services/repository (#23186) 2023-02-28 16:17:51 -06:00
branch.go Fix git error handling (#32401) 2024-11-02 11:20:22 +00:00
cache.go Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
check.go Update tool dependencies (#29030) 2024-02-02 19:11:39 -05:00
collaboration.go Move AddCollabrator and CreateRepositoryByExample to service layer (#32419) 2024-11-07 11:28:11 +08:00
collaboration_test.go Move AddCollabrator and CreateRepositoryByExample to service layer (#32419) 2024-11-07 11:28:11 +08:00
commit.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
contributors_graph.go Enable more `revive` linter rules (#30608) 2024-04-22 11:48:42 +00:00
contributors_graph_test.go disable gravatar in test (#32529) 2024-11-21 04:30:48 +00:00
create.go Add `DEFAULT_MIRROR_REPO_UNITS` and `DEFAULT_TEMPLATE_REPO_UNITS` options (#32416) 2024-11-11 00:11:00 +00:00
create_test.go bump to use go 1.22 (#29119) 2024-02-14 18:19:57 +00:00
delete.go Support repo license (#24872) 2024-10-01 15:25:08 -04:00
delete_test.go Delete repos of org when purge delete user (#27273) 2023-10-19 13:16:11 +00:00
fork.go Refactor find forks and fix possible bugs that weak permissions check (#32528) 2024-11-18 03:06:25 +00:00
fork_test.go Add option to prohibit fork if user reached maximum limit of repositories (#21848) 2022-12-27 15:21:14 -06:00
generate.go Move AddCollabrator and CreateRepositoryByExample to service layer (#32419) 2024-11-07 11:28:11 +08:00
generate_test.go Move generate from module to service (#29465) 2024-02-28 14:40:36 +01:00
hooks.go Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00
init.go Move generate from module to service (#29465) 2024-02-28 14:40:36 +01:00
lfs.go Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294) 2024-02-24 06:55:19 +00:00
lfs_test.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 2023-12-07 15:27:36 +08:00
license.go Support repo license (#24872) 2024-10-01 15:25:08 -04:00
license_test.go Support repo license (#24872) 2024-10-01 15:25:08 -04:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
migrate.go Support repo license (#24872) 2024-10-01 15:25:08 -04:00
push.go Fix broken releases when re-pushing tags (#32435) 2024-11-08 10:53:06 +08:00
repository.go Support repo license (#24872) 2024-10-01 15:25:08 -04:00
repository_test.go refactor some functions to support ctx as first parameter (#21878) 2022-12-03 10:48:26 +08:00
setting.go Fix an actions schedule bug (#28942) 2024-01-31 14:55:12 +00:00
template.go Move generate from module to service (#29465) 2024-02-28 14:40:36 +01:00
transfer.go Move AddCollabrator and CreateRepositoryByExample to service layer (#32419) 2024-11-07 11:28:11 +08:00
transfer_test.go Clarify permission "HasAccess" behavior (#30585) 2024-04-20 03:15:04 +00:00