2
0

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

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:
2026-01-22 12:54:00 -05:00
parent ab4b9d245e
commit 8c979dde36
7 changed files with 414 additions and 10 deletions

View File

@@ -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
}