]> source.dussan.org Git - gitea.git/commit
Move AddCollabrator and CreateRepositoryByExample to service layer (#32419)
authorLunny Xiao <xiaolunwen@gmail.com>
Thu, 7 Nov 2024 03:28:11 +0000 (19:28 -0800)
committerGitHub <noreply@github.com>
Thu, 7 Nov 2024 03:28:11 +0000 (11:28 +0800)
commit276500c314db1c0ef360088753861ffc010a99da
tree2e03a4daa7f38bfaa607b4fefe6e161d88bd724a
parent913be9e8ac1b745c9eb6dda06146e090166c8b79
Move AddCollabrator and CreateRepositoryByExample to service layer (#32419)

- [x] Move `CreateRepositoryByExample` to service layer
- [x] Move `AddCollabrator` to service layer
- [x] Add a new parameter for `AddCollabrator` so that changing mode
immediately after that will become unnecessary.
19 files changed:
models/perm/access_mode.go
modules/repository/collaborator.go [deleted file]
modules/repository/collaborator_test.go [deleted file]
modules/repository/create.go
modules/repository/main_test.go
routers/api/v1/api.go
routers/api/v1/repo/collaborators.go
routers/web/repo/setting/collaboration.go
services/feed/action_test.go
services/issue/main_test.go
services/mailer/main_test.go
services/repository/adopt.go
services/repository/collaboration.go
services/repository/collaboration_test.go
services/repository/create.go
services/repository/fork.go
services/repository/generate.go
services/repository/transfer.go
templates/swagger/v1_json.tmpl