ghfs
GitHub issues/PRs as filesystem, for offline view and operations in batch. Designed for human and agents.
by antfuTypeScript
Commit activity
Last 12 weeks · 8 commits
Community health
5 of 6 standards met
Recent PRs & issues
This description was drafted by an agent from the diff and the commands it ran. froQ🐸 has reviewed it. Description The hub scan dropped every directory whose repository could not be resolved, so a fork whose still points upstream vanished from the project picker with nothing to click and nothing to read. The scan now keeps those directories, sets to null and carries the diagnostic message in . The picker renders them as a pill with the reason in its tooltip, and prints the same list at startup, which is where a missing project is actually noticed. The scan moved to and the resolution to , so the picker and the CLI report the same directories. Neither module throws. A resolution failure comes back as text that the caller displays. Test Three unit test files cover the new code. pins each resolution outcome: success, a git remote that disagrees with , a that fails to load, one that pins the repo, and a non-Error rejection. covers scanning several roots, including a directory listed by two roots, a root that cannot be read, and an unresolvable directory keeping its reason. covers the startup report: one line per hidden directory, silence when everything resolves. On the equivalent decision is the unconditional in , and no test covers it.
🔗 Linked issue resolves #90 🧭 Context returns the empty initial value before the server answers. has already built a pile by then. Applying that empty echo clears it, and the next save stores the empty pile. Advancing after that can show an empty detail for a card that still has an issue number. 📚 Description Subscribe to before the first read, and do not apply the initial value when that read times out. If a pile already exists locally, ignore an empty server value so a late echo cannot wipe it. still clears the pile, because it empties the local state before writing . now passes plain objects into . and are Vue reactive proxies, and immer throws when it reads them back off a frozen draft. starts a pile of two issues, then emits the empty server value only after resolves. Before this change the assertion receives . With it, both the local pile and the saved pile stay . This is the first test that loads code from the root Vitest run, and is only installed for the UI package. aliases it to that copy. Drop the alias and the test if you would rather not run UI code from here ❤️
Describe the bug Starting a card pile can wipe itself. builds the pile locally, then reads . returns before the server reply arrives. That empty value is applied after the local pile exists, so the pile becomes empty, and the save that follows persists the empty pile. I hit this while marking cards skip or todo one by one. The last card rendered "Select an item on the left" instead of the issue, while the comment box on that card still showed the issue number. I can submit a PR for this. Reproduction https://github.com/0froq/ghfs/blob/fix/card-pile-empty-echo/ui/composables/useCardsMode.test.ts System Info Used Package Manager pnpm Validations [x] Follow our Code of Conduct [x] Read the Contributing Guide. [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [x] The provided reproduction is a minimal reproducible of the bug. Contributions [x] I am willing to submit a PR to fix this issue [x] I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)
Repository: antfu/ghfs. Description: GitHub issues/PRs as filesystem, for offline view and operations in batch. Designed for human and agents. Stars: 283, Forks: 16. Primary language: TypeScript. Languages: TypeScript (69.9%), Vue (29.6%), CSS (0.6%), JavaScript (0%). License: MIT. Latest release: v0.2.6 (1mo ago). Open PRs: 10, open issues: 14. Last activity: 3w ago. Community health: 85%. Top contributors: antfu, antfubot, SaKaNa-Y, Emiyaaaaa, CNSeniorious000, snelusha, vkislichenko.