Add support for CODEOWNERS

Fixes #9474
This commit is contained in:
Marshall Cottrell
2022-02-18 14:28:02 -06:00
committed by Bjørn Erik Pedersen
parent ec8b767fa6
commit 06bac57ab0
13 changed files with 136 additions and 5 deletions

View File

@@ -107,6 +107,7 @@ type GetPageProvider interface {
// GitInfoProvider provides Git info.
type GitInfoProvider interface {
GitInfo() *gitmap.GitInfo
Codeowners() []string
}
// InSectionPositioner provides section navigation.

View File

@@ -194,6 +194,10 @@ func (p *nopPage) GitInfo() *gitmap.GitInfo {
return nil
}
func (p *nopPage) Codeowners() []string {
return nil
}
func (p *nopPage) HasMenuCurrent(menuID string, me *navigation.MenuEntry) bool {
return false
}

View File

@@ -252,6 +252,10 @@ func (p *testPage) GitInfo() *gitmap.GitInfo {
return nil
}
func (p *testPage) Codeowners() []string {
return nil
}
func (p *testPage) HasMenuCurrent(menuID string, me *navigation.MenuEntry) bool {
panic("not implemented")
}