Repository navigation
fix: keep a project's pull requests when a question beside the list fails - #1236
Merged
Merged
Conversation
…ails The pull request list alone decides whether a project's GitHub read succeeds. The signed-in account, the review requests and the merge queue are asked and judged on their own; one that fails leaves what is derived from it unknown on every pull request (mine, asked of me or my team, the queue place) and is named in the project's status, instead of failing the whole read and hiding the list. A pull request that cannot be judged waits in the plain Waiting group with an unjudged reason, never in a group it may not belong to, and is listed whenever it may be the operator's. Closes #1189.
The warning on PRs now also shows while the list is current but a question beside it was not answered, and its tooltip names the account, the review requests or the merge queue in plain words, after the age of the list when the read itself failed. A pull request that could not be judged says so in its reason line.
The status model owns what each of the account, the review requests and the merge queue leaves unknown and where a pull request that cannot be judged waits; the UI guide owns the warning's tooltip and the reason line.
…ke gh One case per question failing alone, and all three together: the list stays, the unjudged pull requests wait in Waiting with their reason, and the warning names the questions.
The unanswered-question cases open the warning's tooltip, assert its words and save the lane with the tooltip beside it.
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.
Closes #1189
Summary
프로젝트의 PR 읽기는 PR 목록 말고도 세 가지를 더 묻습니다: 로그인한 계정, 나에게 온 리뷰 요청, 머지 큐 자리입니다.
지금은 이 셋 중 하나만 실패해도 그 프로젝트의 PR이 앱 어디에도 보이지 않았습니다.
이제 PR 목록이 읽히면 읽기는 성공입니다. 실패한 질문에 기대던 판정(내 PR인지, 나나 우리 팀에 리뷰가 요청됐는지, 큐에 있는지)만 "모름"으로 남습니다.
판정할 수 없는 PR은 자기가 속할 수도 있는 그룹이 아니라 평범한 Waiting에 두고, 그 줄에 무엇을 알 수 없는지 적습니다. 배너나 시트는 없습니다.
PRs 옆 ⚠는 그대로 쓰고, 툴팁이 어떤 질문을 못 읽었는지 말합니다.
이 PR은 PRD work-tab-pr-lens D-25의 "하나라도 실패하면 읽기 전체 실패" 규칙을 대체합니다. D-25는 로컬 PRD라 이 본문에만 적습니다.
머지 큐만 못 읽은 경우입니다. 큐에 있을 수 있는 #31, #32만
Not judged로 Waiting에 앉고, 충돌 PR(#34)과 리뷰 PR(#33)은 그대로 판정됩니다.Review
Not judged · can't tell if it is yours처럼 읽힙니다. 같은 모양으로checking(머지 상태 확인 중)이 있어 흐린 색을 맞췄는데, 더 조용하거나 더 분명하게 하고 싶은지 봐 주세요.herdr-core/src/github.rs- 세 질문을 따로 묻고, 목록이 이미 정한 것(요청이 내 이름을 부르는 경우)은 계속 정합니다.review_ask의 표가 그 규칙입니다.herdr-core/src/agent_state/work/board.rs-listed와standing이 "모름"을 "아님"으로 읽지 않는 자리입니다.herdr-core/src/runtime/projects.rs- 뒤 읽기가 실패해 지난 목록을 남길 때 안 읽힌 질문 이름도 같이 남깁니다. 지난 목록을 남기는 동작 자체는 바꾸지 않았습니다.herdr-core/src/github_store.rs- 저장 파일 스키마를 2로 올렸습니다. 옛 파일은 버려지고 다음 읽기가 새로 씁니다.Evidence
github.rs8개,board.rs4개, 런타임 1개). 기대값은 구현이 아니라 규칙 표에서 적었습니다.gh로 Playwright 4개가 질문별로 실패시킨 뒤 목록, 그룹, 이유 줄, ⚠의 접근 이름과 툴팁 문구를 확인합니다(web/e2e/work-prs.spec.ts, macOS, 파일의 10개 모두 통과. main을 합친 뒤에는 새 4개만 다시 돌렸습니다).verify-cargo.sh test -p herdr-core,lint,verify-web.sh web typecheck,lint,test와check-no-attribution,check-no-workstation-identity.hided의opener_lifecycle::thirteenth_quick_launch_is_over_budget가 전체 실행에서 한 번 실패했고 단독 실행에서는 통과했습니다. 이 변경과 무관한 시간 예산 테스트로 보지만 원인은 따로 보지 않았습니다.gh의 실패 모양. 실패는 가짜gh의 종료 코드로만 만들었습니다.추가 증거
세 질문이 모두 실패한 경우입니다. 초안, 봇, 머지된 PR은 목록만으로 정해져 그대로입니다.