Repository navigation
Review only a spec's changes and leave line comments from focus mode - #1
Merged
Merged
Conversation
On a PR's Files changed tab, focus mode now steps through only the chunks that changed, with `d` to switch to the whole spec. `m` opens a comment box for the current chunk (or the selected text), shows which lines of the file it maps to, and adds the comment to your pending review or posts it straight away. GitHub's rich diff carries no line numbers, so src/lines.js aligns the chunk's words against the PR's patch from the API. Comments go through the background worker with a token set on the new options page. Co-Authored-By: Claude Opus 5.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.
On a PR's Files changed tab, focus mode now steps through only the changed chunks of a markdown spec, with the real surrounding text faded for context and
dto switch to the whole spec.mopens a comment box for the current chunk (or just the selected text), previews the file lines it maps to, and either adds it to your pending review (⌘↵) or posts it straight away (⇧⌘↵); chunks outside the diff become file comments that quote them. Since GitHub's rich diff has no line numbers,src/lines.jsaligns the chunk's words against the PR's patch from the API, covered by tests using a real spec-kit patch. Comments go through the background worker using a token set on a new options page. Checked end to end in Chromium against github/spec-kit#4739 with the write endpoints mocked, so real posting and GitHub's newer Files changed UI are still untested.🤖 Generated with Claude Code