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/services/repository
Lunny Xiao e4c4629465
Move RepoTransfer from models to models/repo sub package (#32506)
`RepoTransfer` now is at models, but if we want to move it into `repo`
model, it will depend on `Team`. So this PR also makes repo model depend
on org model to make it possible. Just refactor, no code change.

- [x] Move `DeleteOrganization` from `models/organization` to service
layer
- [x] Move `AccessibleTeamReposEnv` to `models/repo`
- [x] Move `RepoTransfer` from `models` to `models/repo`
- [x] Merge `getUserTeamIDs` and `GetUserTeamIDs`, Merge `GetUserTeams`
and `getUserTeams`.
- [x] Remove `Team`'s `Repos []*repo_model.Repository` to avoid dependency recycle.
2 months ago
..
archiver Enable tenv and testifylint rules (#32852) 2 months ago
commitstatus Add new event commit status creation and webhook implementation (#27151) 3 months ago
files Fix git error handling (#32401) 3 months ago
adopt.go Move AddCollabrator and CreateRepositoryByExample to service layer (#32419) 3 months ago
adopt_test.go Reduce integration test overhead (#32475) 3 months ago
avatar.go Improve avatar uploading / resizing / compressing, remove Fomantic card module (#24653) 2 years ago
avatar_test.go Use context parameter in services/repository (#23186) 2 years ago
branch.go Detect whether action view branch was deleted (#32764) 2 months ago
cache.go Always enable caches (#28527) 1 year ago
check.go Update tool dependencies (#29030) 1 year ago
collaboration.go Move team related functions to service layer (#32537) 2 months ago
collaboration_test.go Move AddCollabrator and CreateRepositoryByExample to service layer (#32419) 3 months ago
commit.go Move context from modules to services (#29440) 12 months ago
contributors_graph.go Enable more `revive` linter rules (#30608) 10 months ago
contributors_graph_test.go disable gravatar in test (#32529) 3 months ago
create.go Move team related functions to service layer (#32537) 2 months ago
delete.go Move team related functions to service layer (#32537) 2 months ago
delete_test.go Delete repos of org when purge delete user (#27273) 1 year ago
fork.go Refactor find forks and fix possible bugs that weak permissions check (#32528) 3 months ago
fork_test.go Add option to prohibit fork if user reached maximum limit of repositories (#21848) 2 years ago
generate.go Move AddCollabrator and CreateRepositoryByExample to service layer (#32419) 3 months ago
generate_test.go Move generate from module to service (#29465) 12 months ago
hooks.go Simplify how git repositories are opened (#28937) 1 year ago
init.go Move generate from module to service (#29465) 12 months ago
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) 12 months ago
lfs_test.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 1 year ago
license.go Support repo license (#24872) 4 months ago
license_test.go Enable tenv and testifylint rules (#32852) 2 months ago
main_test.go make writing main test easier (#27270) 1 year ago
merge_upstream.go Support "merge upstream branch" (Sync fork) (#32741) 2 months ago
migrate.go Support repo license (#24872) 4 months ago
push.go Fix broken releases when re-pushing tags (#32435) 3 months ago
repo_team.go Move RepoTransfer from models to models/repo sub package (#32506) 2 months ago
repo_team_test.go Move team related functions to service layer (#32537) 2 months ago
repository.go Support repo license (#24872) 4 months ago
repository_test.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
setting.go Fix an actions schedule bug (#28942) 1 year ago
template.go Move generate from module to service (#29465) 12 months ago
transfer.go Move RepoTransfer from models to models/repo sub package (#32506) 2 months ago
transfer_test.go Move RepoTransfer from models to models/repo sub package (#32506) 2 months ago