Skip to content

Commit

Permalink
아키텍처 규칙 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
woohm402 committed Jun 22, 2024
1 parent 6f48655 commit 9c4b49a
Show file tree
Hide file tree
Showing 13 changed files with 277 additions and 288 deletions.
5 changes: 0 additions & 5 deletions src/infrastructures/implementDashboardService.test.ts

This file was deleted.

161 changes: 0 additions & 161 deletions src/infrastructures/implementDashboardService.ts

This file was deleted.

76 changes: 0 additions & 76 deletions src/infrastructures/implementDeploymentService.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/infrastructures/implementGithubOctokitRepository.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Octokit } from 'octokit';

import { implementDashboardService } from './implementDashboardService';
import { implementDashboardService } from '../services/DashboardService';

export const implementGithubOctokitRepository = ({
githubAuthToken,
Expand Down
4 changes: 2 additions & 2 deletions src/infrastructures/implementOpenAiSummarizeRepository.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import OpenAI from 'openai';

import { type SummarizeLLMRepository } from '../repositories/SummarizeLLMRepository';
import { implementDeploymentService } from '../services/GithubDeploymentService';

export const implementOpenAiSummarizeRepository = ({
openaiApiKey,
}: {
openaiApiKey: string;
}): SummarizeLLMRepository => {
}): Parameters<typeof implementDeploymentService>[0]['summarizeLLMRepository'] => {
return {
summarizeReleaseNote: async (content, { maxLen }) => {
const openai = new OpenAI({ apiKey: openaiApiKey });
Expand Down
36 changes: 0 additions & 36 deletions src/infrastructures/implementSlackEventService.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/repositories/SummarizeLLMRepository.ts

This file was deleted.

4 changes: 2 additions & 2 deletions src/server.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import dotenv from 'dotenv';
import express from 'express';

import { implementDeploymentService } from './infrastructures/implementDeploymentService';
import { implementGitHubDeployWebhookController } from './infrastructures/implementGitHubDeployWebhookController';
import { implementOpenAiSummarizeRepository } from './infrastructures/implementOpenAiSummarizeRepository';
import { implementSlackEventService } from './infrastructures/implementSlackEventService';
import { implementSlackPresenter } from './infrastructures/implementSlackPresenter';
import { implementDeploymentService } from './services/GithubDeploymentService';
import { implementSlackEventService } from './services/SlackEventService';

dotenv.config({ path: '.env.local' });

Expand Down
Loading

0 comments on commit 9c4b49a

Please sign in to comment.