Repository navigation
feat(comments): acknowledge a conversation I have read - #102
Merged
Merged
Conversation
A pull request sat in Needs me for a comment I had read and had nothing to answer, and only a reply or a push could take it out. dw-mc comments --ack records an acknowledgement: my word that the conversation, as far as its newest comment by a person, holds nothing for me. The bucket rule takes the latest of my last comment, my last commit and that acknowledgement, so a newer comment brings the pull request back. It is scoped to a comment's moment and not to a head, because it is about the conversation rather than the code, and changes requested stays with the reviewer who can lift it. Closes #55 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
A pull request stays in Needs me for a comment I have read and have nothing to answer, and only a reply or a push takes it out.
dw-mc comments <pr> --ackrecords an acknowledgement: my local word that the conversation, as far as its newest comment by a person, holds nothing for me. The bucket rule counts it beside my last comment and my last commit, so a newer comment brings the pull request back. It is scoped to a comment's moment rather than a head, and it never lifts changes requested.Closes #55.
What changes
src/domain/bucket.ts—FactscarriesacknowledgedAt;answeredAtis the latest of my comment, my commit and my acknowledgement, and it is what a human comment is measured against.src/domain/acknowledgement.ts— the record, in anacknowledgementsnamespace of its own; the sweep reads it intoFactsevery run, so a quiet PR still sees it.dw-mc comments <pr> --ack— records the newest comment by a person in the whole conversation, settled threads included, because the sweep counts those too; then says the bucket the PR sits in. The default view usesansweredAtas its cutoff, so what is acknowledged is not shown again.Test plan
pnpm check— pass, 731 testssrc/domain/bucket.test.ts— 6 new cases: each of the three moments on its own, a comment newer than all three, a comment newer than the acknowledgement, changes requested held whatever is acknowledgedsrc/domain/acknowledgement.test.ts,src/domain/comments.test.ts— the record's round trip, and what--ackcovers: settled threads in, bots out, nothing where no person spokesrc/cli/comments.test.ts— 4 new cases: no write without--ack, the moment recorded, nothing to acknowledge, acknowledged comments left out of the viewsrc/cli/status.test.ts— 2 new cases: an acknowledgement survives a head change, and a newer comment takes it back. With the sweep's read broken on purpose both fail.node dist/bin.js comments --helplists--ackdw-mc comments <pr> --ackon a PR in Needs me for a comment, thendw-mc statusshows it out of Needs meRisk
Low:
--ackwrites only to the state directory, never to GitHub.Factssaved by the released version lack the new field and are forgotten, so the first command after upgrading asks for one sweep. Way back:git revert, and a wrong acknowledgement is undone by deleting its file underacknowledgements/.🤖 Generated with Claude Code