Fix #332: pulls default open-only #341
No reviewers
Labels
No labels
actions
bug
cli
duplicate
enhancement
fork
forum
git storage
help wanted
insights
invalid
issues
moderation
oidc
ownership transfer
packages
pr/merge protection rules
projects
pull requests
question
releases
sponsorships
tags
webhooks
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub!341
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-332"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Mirrors the #323 issues resolution for the pulls list: bare /:o/:r/pulls visits resolve to open-only (wire state=open, open tab highlighted), explicit both is ?state=all via a third tab (sent wire-omitted, since the endpoint accepts open|closed|absent only), legacy empty ?state= still reads as both. Backend untouched — ListPRs empty-state=both (service.go:782-784) is now the relied-upon contract for the wire-omitted both-choice; Pulls.jsx is the sole pulls.list consumer. Resolver in web/src/lib/pullState.js + web/test/unit/pull-state.test.js; decision in 03 Decisions (law 12). Tests: node --test 651/651 green, vite+esbuild builds green, go vet clean, go test -race internal/pulls ok, coverage 97.7% (>=95%). Fixes #332.