Enable orgs

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
Gabriel Adrian Samfira 2025-05-16 22:43:21 +00:00
parent 5dfcfc542e
commit 6a168ba813
22 changed files with 125 additions and 77 deletions

View file

@ -1098,6 +1098,13 @@ func (g ForgeEntity) GetCreatedAt() time.Time {
return g.CreatedAt
}
func (g ForgeEntity) GetForgeType() (EndpointType, error) {
if g.Credentials.ForgeType == "" {
return "", fmt.Errorf("credentials forge type is empty")
}
return g.Credentials.ForgeType, nil
}
func (g ForgeEntity) ForgeURL() string {
switch g.Credentials.ForgeType {
case GiteaEndpointType: