var walk = require('../lib/walk'); module.exports = function (comments) { return walk(comments, function (comment) { var hasGithub = !!comment.context.github; var path = comment.context.path; comment.context = { loc: comment.context.loc }; if (hasGithub) { comment.context.github = '[github]'; } if (path) { comment.context.path = path; } }); };