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

@ -148,6 +148,10 @@ func (p *pageState) GitInfo() *gitmap.GitInfo {
return p.gitInfo
}
func (p *pageState) Codeowners() []string {
return p.codeowners
}
// GetTerms gets the terms defined on this page in the given taxonomy.
// The pages returned will be ordered according to the front matter.
func (p *pageState) GetTerms(taxonomy string) page.Pages {