Skip to content
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 and CreateRepositoryByExample to service layer #32419

Merged
merged 13 commits into from
Nov 7, 2024
3 changes: 3 additions & 0 deletions models/perm/access_mode.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,6 @@ func ParseAccessMode(permission string, allowed ...AccessMode) AccessMode {
}
return util.Iif(slices.Contains(allowed, m), m, AccessModeNone)
}

// ErrInvalidAccessMode is returned when an invalid access mode is used
var ErrInvalidAccessMode = util.NewInvalidArgumentErrorf("Invalid access mode")
48 changes: 0 additions & 48 deletions modules/repository/collaborator.go

This file was deleted.

280 changes: 0 additions & 280 deletions modules/repository/collaborator_test.go

This file was deleted.

Loading
Loading