admin: New routes to expose git repositories status
This commit is contained in:
parent
598b34eb4f
commit
b08039c997
8 changed files with 265 additions and 0 deletions
|
|
@ -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"`
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue