admin: New routes to expose git repositories status

This commit is contained in:
nemunaire 2023-10-23 12:03:40 +02:00
commit b08039c997
8 changed files with 265 additions and 0 deletions

View file

@ -64,3 +64,10 @@ func getForgeBaseLink(remote string) (u *url.URL, err error) {
u.Host = res[1]
return
}
type GitSubmoduleStatus struct {
Hash string `json:"hash"`
Text string `json:"text,omitempty"`
Path string `json:"path"`
Branch string `json:"branch"`
}