-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move AddCollabrator functions to service layer #32419
base: main
Are you sure you want to change the base?
Conversation
c200c38
to
9a6b396
Compare
@@ -8,6 +8,7 @@ import ( | |||
|
|||
"code.gitea.io/gitea/models/unittest" | |||
|
|||
_ "code.gitea.io/gitea/models" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤨
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a better change because that means the repository
module will not depend on models
directly. So that the test package needs to depend on models
explicitly.
CreateRepositoryByExample
to service layerAddCollabrator
to service layerAddCollabrator
so that changing mode immediately after that will become unnecessary.