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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user