Skip to content

[#6] 감시 대상 branch 정보를 Watcher 내부 모델로 수집한다#12

Merged
opficdev merged 8 commits into
developfrom
feat/#6-branch
Jun 21, 2026
Merged

[#6] 감시 대상 branch 정보를 Watcher 내부 모델로 수집한다#12
opficdev merged 8 commits into
developfrom
feat/#6-branch

Conversation

@opficdev

Copy link
Copy Markdown
Owner

🔗 연관된 이슈

🎯 의도

Watcher가 merge conflict 가능성 분석에 사용할 감시 대상 branch 정보를 내부 모델로 구성하기 위한 기반 마련

📝 작업 내용

📌 요약

  • branch 감시 대상 선택 규칙 구성
  • branch metadata를 분석 입력용 BranchContext로 확장
  • source에서 branch 목록을 수집해 BranchContext로 변환하는 pipeline 구성
  • nested test 구조를 지원하도록 test script 정리

🔍 상세

  • src/branches/types.tsRepositoryBranch, BranchContext, BranchSelectionOptions, BranchSource 관련 타입 추가
  • src/branches/branchSelector.ts에 base/default branch 제외, include/exclude pattern, stale branch 제외 규칙 추가
  • src/branches/branchCollector.tsBranchSource 기반 collectBranchContexts pipeline 추가
  • optional Pull Request metadata와 check metadata를 branch context에 보존하도록 구성
  • src/index.ts에서 branches module API export
  • tests/branches 아래에 branch selector와 collector 테스트 추가
  • nested test 실행을 위해 npm test glob을 dist/tests/**/*.test.js로 변경
  • stale dist 영향을 줄이기 위해 build 전에 dist 제거

📸 영상 / 이미지 (Optional)

@opficdev opficdev self-assigned this Jun 21, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/branches/branchSelector.ts Outdated
@opficdev opficdev merged commit e09509d into develop Jun 21, 2026
3 checks passed
@opficdev opficdev deleted the feat/#6-branch branch June 21, 2026 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

감시 대상 branch 정보를 Watcher 내부 모델로 수집한다

1 participant