bsw@1219: function lf4rcs.render_draft_reference(draft, wrapper) bsw@1219: local repository, path, url = lf4rcs.get_config(draft.initiative.issue.area.unit) bsw@1219: if not (config.lf4rcs[repository] and config.lf4rcs[repository].render_draft_reference) then bsw@1219: error("Unsupported repository type") bsw@1219: end bsw@1219: if draft.external_reference then bsw@1219: wrapper(function() bsw@1219: config.lf4rcs[repository].render_draft_reference(url, draft) bsw@1219: end) bsw@1219: end bsw@1219: end bsw@1219: