We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e3369a commit 2f61543Copy full SHA for 2f61543
1 file changed
src/main/kotlin/com/project/codereview/core/service/CodeReviewService.kt
@@ -34,19 +34,15 @@ class CodeReviewService(
34
35
private val logger = LoggerFactory.getLogger(CodeReviewService::class.java)
36
37
- fun review(
+ suspend fun review(
38
payload: GithubPayload,
39
- fileContexts: List<ReviewContext>
+ fileContexts: List<ReviewContext>,
40
+ isOpened: Boolean = true
41
) {
- CoroutineScope(Dispatchers.IO).launch {
42
- runReviewTasks(payload, fileContexts)
+ // Summary 모델 사용 후 최소 시간 대기
43
+ if (isOpened) {
44
+ delay(ONE_MINUTE_TO_MS)
45
}
- }
-
46
- private suspend fun runReviewTasks(
47
- payload: GithubPayload,
48
49
- ) {
50
val pr = payload.pull_request
51
52
val tasks = fileContexts
0 commit comments