Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[view] Remote Git config에서 owner, repo 정보를 View에서 받는 방식 수정 #768

Merged
merged 9 commits into from
Oct 15, 2024

Conversation

seungineer
Copy link
Member

Related issue

#588

Result

AS-IS

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, 공란 등이 되어야 할 것 같은데, 특정 레포지토리로 지정되어 있는 것은 수정되어야 하는 부분인 것 같습니다. 🤔

@seungineer seungineer added this to the v0.7.2 milestone Oct 14, 2024
@seungineer seungineer self-assigned this Oct 14, 2024
@seungineer seungineer requested review from a team as code owners October 14, 2024 06:47
Copy link
Contributor

@ytaek ytaek left a comment

Choose a reason for hiding this comment

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

깔~끔합니다!!! LGTM!

initRef.current = true;
}
}, [handleChangeAnalyzedData, handleChangeBranchList, ideAdapter, setLoading]);

useEffect(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

👍👍👍

Copy link
Contributor

@xxxjinn xxxjinn left a comment

Choose a reason for hiding this comment

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

lgtm!!!!@@

@seungineer seungineer merged commit 22a6783 into githru:main Oct 15, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants