569 PR에서 작업한 내용과 같이 owner, repo 정보를 vscode에서 view로 전달하기 위해 새로운 EventListner를 추가하여 해당 EventListner에 postMessage하는 방식이었습니다.
TO-BE
owner, repo 정보를 fetch하는 방식으로 csmDict, branches 정보와 생명 주기가 갖도록 수정하였습니다.
Work list
sendFetchAnalyzedDataMessage, sendFetchBranchListMessage 할 때, sendFetchGithubInfo가 함께 실행되어 owner, repo 정보를 zustand store에 할당 합니다.
기존에 사용하던 sendMessageToIDE를 사용하여 별도의 EventListner를 추가하지 않도록 수정하였습니다.
Discussion
dev 모드에서는 Remote Git config를 통해 Github Info가 Fetch되지 않습니다. 이에 owner, repo 상태의 초기값을 'githru', 'githru-vscode-ext'로 하여 dev 모드에서도 issue number 링크를 테스트할 수 있도록 하였습니다.
초기값이 undefined, 공란 등이 되어야 할 것 같은데, 특정 레포지토리로 지정되어 있는 것은 수정되어야 하는 부분인 것 같습니다. 🤔
Related issue
588
Result
AS-IS
569 PR에서 작업한 내용과 같이
owner
,repo
정보를 vscode에서 view로 전달하기 위해 새로운EventListner
를 추가하여 해당EventListner
에postMessage
하는 방식이었습니다.TO-BE
owner
,repo
정보를 fetch하는 방식으로csmDict
,branches
정보와 생명 주기가 갖도록 수정하였습니다.Work list
sendFetchAnalyzedDataMessage
,sendFetchBranchListMessage
할 때,sendFetchGithubInfo
가 함께 실행되어owner
,repo
정보를 zustandstore
에 할당 합니다.sendMessageToIDE
를 사용하여 별도의EventListner
를 추가하지 않도록 수정하였습니다.Discussion
owner
,repo
상태의 초기값을 'githru', 'githru-vscode-ext'로 하여 dev 모드에서도 issue number 링크를 테스트할 수 있도록 하였습니다.undefined
, 공란 등이 되어야 할 것 같은데, 특정 레포지토리로 지정되어 있는 것은 수정되어야 하는 부분인 것 같습니다. 🤔