[#6] 감시 대상 branch 정보를 Watcher 내부 모델로 수집한다#12
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces branch collection and selection logic to filter watched branches based on include/exclude patterns, staleness, and base/default branch configurations, complete with unit tests and package script updates. The feedback suggests optimizing performance in branchSelector.ts by pre-compiling wildcard patterns into regular expressions rather than compiling them repeatedly during branch filtering.
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.
🔗 연관된 이슈
🎯 의도
Watcher가 merge conflict 가능성 분석에 사용할 감시 대상 branch 정보를 내부 모델로 구성하기 위한 기반 마련
📝 작업 내용
📌 요약
BranchContext로 확장BranchContext로 변환하는 pipeline 구성🔍 상세
src/branches/types.ts에RepositoryBranch,BranchContext,BranchSelectionOptions,BranchSource관련 타입 추가src/branches/branchSelector.ts에 base/default branch 제외, include/exclude pattern, stale branch 제외 규칙 추가src/branches/branchCollector.ts에BranchSource기반collectBranchContextspipeline 추가src/index.ts에서 branches module API exporttests/branches아래에 branch selector와 collector 테스트 추가npm testglob을dist/tests/**/*.test.js로 변경dist영향을 줄이기 위해 build 전에dist제거📸 영상 / 이미지 (Optional)