Allow defining commentlinks in project.config

These are inherited from parent projects, including the system-wide
commentlinks defined in project.config in all projects. Child projects
may override commentlinks defined in parents by name, which project
administrators can discover via GET /projects/myparent/config.

Change-Id: I96dd6701350761a0af6e3d9babdef4f74ad4e29f
This commit is contained in:
Dave Borowitz
2013-04-08 12:03:29 -07:00
parent 2002789f41
commit 13b38004e9
4 changed files with 60 additions and 7 deletions

View File

@@ -40,7 +40,7 @@ public class CommentLinkProvider implements Provider<List<CommentLinkInfo>> {
List<CommentLinkInfo> cls =
Lists.newArrayListWithCapacity(subsections.size());
for (String name : subsections) {
cls.add(ProjectConfig.buildCommentLink(cfg, name));
cls.add(ProjectConfig.buildCommentLink(cfg, name, true));
}
return ImmutableList.copyOf(cls);
}