Repository navigation
fix: name the repository for gh repo view when a read has no checkout - #2012
Merged
Merged
Conversation
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.
Related: #2008
Summary
#2008 이후 mini 같은 SSH 장치 프로젝트의 PR 목록은 읽히는데, 같은 읽기 안의
gh repo view가 실패해서 읽기 전체가 실패로 남았습니다.gh repo view는GH_REPO를 무시하고 현재 폴더의 git remote를 읽기 때문입니다(gh 2.76). 장치 체크아웃은 이 Mac에 폴더가 없으니not a git repository로 끝납니다.이제 gh 실행기가 저장소 이름이 있는 호출에서는
repo view에 그 이름을 인자로 붙입니다.Review
hide-host/src/gh.rs- 허용 목록 검사는 원래 인자로 하고, 실행할 때만 저장소 이름을 넣습니다.Evidence
cd / && GH_REPO=with-hide/hide gh repo view --json nameWithOwner는 같은 메시지로 실패하고,issue list와pr list는 성공합니다.a_repository_view_named_by_its_repository_needs_no_checkout는 고치기 전에는 실패하고 고친 뒤에는 통과합니다. hide-host 275개 통과, clippy 깨끗.