import mustache from "mustache" ; /** Placeholders defines the placeholders in comment templates. */ interface Placeholders { /** the SHA of the latest commit pushed */ readonly commitSha ? : string ; /** list of the changed files with formatting problems */ readonly files ? : string [ ] ; } export function render ( template , placeholders ) { const data = placeholders as any ; data . PrettifierLink = "[Prettifier](https://prettifier.io)" ; data . PrettifierContactURL = "https://github.com/kevgo/prettifier/issues/new" ; mustache . escape = ( text ) => text ; return mustache . render ( template , data ) ; }