feat(org): add pinned repositories management UI
Some checks failed
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Has been cancelled
Build and Release / Build Binaries (amd64, darwin, macos) (push) Has been cancelled
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Has been cancelled
Build and Release / Build Binaries (arm64, darwin, macos) (push) Has been cancelled
Build and Release / Build Binary (linux/arm64) (push) Has been cancelled
Build and Release / Lint (push) Has been cancelled
Build and Release / Integration Tests (PostgreSQL) (push) Has been cancelled
Build and Release / Unit Tests (push) Has been cancelled
Build and Release / Create Release (push) Has been cancelled
Some checks failed
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Has been cancelled
Build and Release / Build Binaries (amd64, darwin, macos) (push) Has been cancelled
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Has been cancelled
Build and Release / Build Binaries (arm64, darwin, macos) (push) Has been cancelled
Build and Release / Build Binary (linux/arm64) (push) Has been cancelled
Build and Release / Lint (push) Has been cancelled
Build and Release / Integration Tests (PostgreSQL) (push) Has been cancelled
Build and Release / Unit Tests (push) Has been cancelled
Build and Release / Create Release (push) Has been cancelled
Implements a settings page for organization admins to manage pinned repositories. Adds ability to pin/unpin repos, reorder them via drag-and-drop, and view currently pinned repos. Includes new routes, templates, locale strings, and helper function IsErrOrgPinnedRepoAlreadyExist for error handling.
This commit is contained in:
@@ -271,3 +271,9 @@ type ErrOrgPinnedRepoAlreadyExist struct {
|
||||
func (err ErrOrgPinnedRepoAlreadyExist) Error() string {
|
||||
return "repository is already pinned"
|
||||
}
|
||||
|
||||
// IsErrOrgPinnedRepoAlreadyExist checks if err is ErrOrgPinnedRepoAlreadyExist
|
||||
func IsErrOrgPinnedRepoAlreadyExist(err error) bool {
|
||||
_, ok := err.(ErrOrgPinnedRepoAlreadyExist)
|
||||
return ok
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user