Repository navigation
list: add --ours to show only everyhook entries across agents (#9) - #10
Merged
Merged
Conversation
nrzz
added a commit
that referenced
this pull request
Oct 28, 2026
list --ours shows only the entries everyhook wrote, across the agents, leaving out the files whose hooks are all someone else's, from the fifth outside pull request, #10 by @yoreva-01, for the good first issue #9. The next good first issue is #11: list --theirs, only the entries everyhook did not write. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
Merged and released as 1.5.0, with your name in the changelog and the release notes. Thank you; the four cuts of The suite was green on this machine (332 tests, 50 of them skipped without the agents' variables) and in CI on all three systems, test and real-agent jobs alike, before the merge. The README's test count you updated matched what If you want the next one, #11 is the other half: |
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.
What and why
Fixes #9.
Adds
--ourstoeveryhook list:ours: true).--hook <name>.--ours(ours: trueincluded in JSON).--agent,--event,--hook,--problems, and--project.--ours=val) or specified more than once exit code 2 as a usage error.How it was tested
Added 4 dedicated automated tests in
test/list.test.mjs:list --ours: shows only entries written by everyhook and omits files with no matching entries(verifies text and JSON output, and dropping non-everyhook files).list --ours combines with --agent, --event, --problems, and --project(verifies combinations, problem reporting on matching ours entries with exit 1).list --ours with no ours hooks reports 0 hooks in 0 files and exits 0(verifies clean empty report in text and JSON).list --ours usage errors: with value or twice exits 2.Ran full test suite:
node --test test/list.test.mjs: 32/32 tests pass.node --test test/readme.test.mjs: 29/29 tests pass.node --test test/repo.test.mjs: 13/13 tests pass (LF line endings and repo contracts verified).npm test: 332 tests reported by runner, 282 passed, 0 failed, 50 skipped on Windows.Checklist
npm testpasses, and the change has a testexplainsaydocs)