todo-backend: implement TodoScmReader

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-03-09 23:02:07 +01:00
parent 76e6336312
commit 2eeb884353
4 changed files with 123 additions and 10 deletions
+2 -1
View File
@@ -25,9 +25,10 @@ import { PluginEnvironment } from '../types';
export default async function createPlugin({
logger,
reader,
config,
discovery,
}: PluginEnvironment): Promise<Router> {
const todoReader = new TodoScmReader({
const todoReader = TodoScmReader.fromConfig(config, {
logger,
reader,
});