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

@ -1075,12 +1075,14 @@ func TestPageWithLastmodFromGitInfo(t *testing.T) {
// 2018-03-11 is the Git author date for testsite/content/first-post.md
c.Assert(enSite.RegularPages()[0].Lastmod().Format("2006-01-02"), qt.Equals, "2018-03-11")
c.Assert(enSite.RegularPages()[0].Codeowners()[0], qt.Equals, "@bep")
nnSite := h.Sites[1]
c.Assert(len(nnSite.RegularPages()), qt.Equals, 1)
// 2018-08-11 is the Git author date for testsite/content_nn/first-post.md
c.Assert(nnSite.RegularPages()[0].Lastmod().Format("2006-01-02"), qt.Equals, "2018-08-11")
c.Assert(enSite.RegularPages()[0].Codeowners()[0], qt.Equals, "@bep")
}
func TestPageWithFrontMatterConfig(t *testing.T) {