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.
This commit is contained in:
2023-10-17 23:15:29 +02:00
parent 65eec9a2f6
commit 398b6a1992
7 changed files with 200 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
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
}