import { makeService } from "@ethicdevs/react-monolith";
import type { PullRequestServiceDeps, PullRequestServiceAPI } from "./types";
import { default as makeGetPullRequestById } from "./getPullRequestById";
import { default as makeGetPullRequestByUid } from "./getPullRequestByUid";
import { default as makeGetPullRequestsInRepository } from "./getPullRequestsInRepository";
import { default as makeCreatePullRequest } from "./createPullRequest";
import { default as makeMergePullRequest } from "./mergePullRequest";
export const makePullRequestService = makeService<
PullRequestServiceAPI,
PullRequestServiceDeps
>({
getPullRequestById: makeGetPullRequestById,
getPullRequestByUid: makeGetPullRequestByUid,
getPullRequestsInRepository: makeGetPullRequestsInRepository,
createPullRequest: makeCreatePullRequest,
mergePullRequest: makeMergePullRequest,
});