This repository has been archived on 2025-10-30. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
gitwarrior/internal/gitea/repository.go
Yves Biener 398b6a1992 add(gitea-api): issues and milestones getters
This implements the api getters for extracting the issues and milestones
for a given gitea repository. WIP for #1.
2023-10-17 23:15:29 +02:00

18 lines
286 B
Go

package gitea
import "fmt"
type Repository struct {
Id uint
Name string
Owner string
Full_name string
}
func NewRepository(name, owner string) (repo Repository) {
repo.Name = name
repo.Owner = owner
repo.Full_name = fmt.Sprintf("%s/%s", owner, name)
return
}