Conversation
There was a problem hiding this comment.
Code Review
이번 풀 요청은 브랜치 간의 충돌 및 겹침 관계를 나타내는 충돌 그래프(Conflict Graph) 빌더를 도입하고, 이를 기반으로 위험 분석을 수행하도록 riskAnalyzer 및 mergeRiskWatch 워크플로우를 개선합니다. 리뷰어는 conflictGraphBuilder.ts에서 파일 경로를 정렬할 때 브랜치 이름 비교 함수인 compareBranchNames를 사용하는 문제를 지적하며, 파일 경로 정렬을 위한 별도의 정렬 함수(sortedUniqueFiles)를 분리하여 사용할 것을 제안했습니다.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 연관된 이슈
🎯 의도
baseBranch와 활성 branch의 조합별 merge 결과를 충돌 graph로 구성하고, 위험 관계를 양쪽 branch의 분석 결과에 반영하기 위한 변경📝 작업 내용
📌 요약
34a160a: branch 조합의 충돌·겹침 관계 분류 구현ebf154d: 충돌 graph 집계와 graph 기반 branch 위험 분석 구현afcdbe0: 실제mergeRiskWatch실행 흐름에 충돌 graph 분석 연결🔍 상세
충돌 graph 구성
baseBranch와 활성 branch를 중복 없는 graph node로 구성confirmed_conflict,potential_overlap,clean,error로 분류same_file_overlap, 같은 hunk 수정은same_hunk_overlapreason으로 기록merge_check_failed,code_context_failedreason으로 구분confirmed_conflict를 코드 문맥 수집 실패보다 우선하는 최상위 상태로 처리branch별 관계 집계
relatedBranchNames에 집계confirmedConflictCount와potentialOverlapCount집계graph 기반 위험 분석
analyzeGraph에서 branch와 연결된 전체 graph edge를 기존BranchRisk형식으로 변환confirmed_conflict존재 시 100점의critical위험으로 우선 처리critical file, 실패한 check를 보조 signal로 유지merge_check_failed위험 근거로 호환 처리실행 흐름 연결
mergeRiskWatch에서 merge-tree 결과의 코드 문맥 수집 후 edge와 graph 생성analyzeGraph기반 분석으로 교체deterministic-evidence.json, AI 대상 선택, report 생성 흐름과 연결📸 영상 / 이미지 (Optional)
해당 없음