// 1st-party
import type { ServiceMethodFactory } from "@ethicdevs/react-monolith";
import type { PipelineServiceDeps } from "./types";
const makeTriggerRunner: ServiceMethodFactory<
PipelineServiceDeps,
[string, string, string],
Promise<any>
> = ({ runner }) => {
return async (orgSlug: string, repoSlug: string, pipelineId: string) => {
return runner.triggerRun(orgSlug, repoSlug, pipelineId);
};
};
export default makeTriggerRunner;