giteabot backport / giteabot (push) Canceled after 0s
giteabot / giteabot (push) Canceled after 0s
release-nightly / nightly-binary (push) Canceled after 0s
release-nightly / nightly-container (push) Canceled after 0s
cache-seeder / gobuild (push) Canceled after 0s
cache-seeder / lint (bindata, lint-backend) (push) Canceled after 0s
release-nightly-snapcraft / build-and-publish (push) Canceled after 0s
Includes direct password setup links in registration emails. Assisted-by: Codex:GPT-5
24 lines
496 B
Go
24 lines
496 B
Go
// Copyright 2024 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package rpm
|
|
|
|
import (
|
|
"context"
|
|
|
|
packages_model "gitea.dev/models/packages"
|
|
rpm_module "gitea.dev/modules/packages/rpm"
|
|
)
|
|
|
|
// GetGroups gets all available groups
|
|
func GetGroups(ctx context.Context, ownerID int64) ([]string, error) {
|
|
return packages_model.GetDistinctPropertyValues(
|
|
ctx,
|
|
packages_model.TypeRpm,
|
|
ownerID,
|
|
packages_model.PropertyTypeFile,
|
|
rpm_module.PropertyGroup,
|
|
nil,
|
|
)
|
|
}
|