Skip to content

Commit 5bd163d

Browse files
committed
fix: Modify code-review.yml
- code-review.yml - 최종 요약 comment 는 별도 요청으로 분리 - openai API 요청 max_token 설정
1 parent f2b9371 commit 5bd163d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/code-review.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
model_name = "${{ secrets.OPENAI_MODEL }}"
4646
summary_system_prompt = """${{ secrets.SUMMARY_SYSTEM_PROMPT }}"""
4747
48-
# 처리된 파일과 라인 기록 (중복 방지)
48+
# 처리된 파일 기록 (중복 방지)
4949
processed_files = set() # 각 파일을 기록
5050
review_history = [] # 각 파일의 리뷰 기록을 저장
5151
@@ -86,10 +86,6 @@ jobs:
8686
patch = file.get('patch', '')
8787
print(f"Analyzing patch for file: {file_path}")
8888
89-
# 각 파일마다 중복 라인 처리를 위한 집합 생성
90-
if file_path not in processed_lines:
91-
processed_lines[file_path] = set()
92-
9389
# 전체 패치 내용을 GPT에게 전달
9490
if patch: # 패치가 존재할 경우에만 처리
9591
print(f"Calling GPT API for patch in file: {file_path}")

0 commit comments

Comments
 (0)