Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix review thread conflicts #66

Merged
merged 1 commit into from
Aug 21, 2022
Merged

fix: fix review thread conflicts #66

merged 1 commit into from
Aug 21, 2022

Conversation

ldelossa
Copy link
Owner

previous to this commit gh.nvim did not understand that a comment can
track its original commit sha

without this, it could not decipher which comments belonged to which
commits and would overrlay comments over multiple commits.

with these changes will now only display comments on a commit in the
commit tree view, checkout the commit and open the correct files when
using the Conversations: tab, and correctly sync review threads to their
commits during review.

additionally, a few UI elements have changed. the Conversations: tab in
the pr details tree now shows the commit a threaded conversation belongs
to. Also, an asterick is used in the Commits: tree now to indicate which
commit gh.nvim has currently checked out.

fixes: #47

Signed-off-by: Louis DeLosSantos louis.delos@gmail.com

previous to this commit gh.nvim did not understand that a comment can
track its original commit sha

without this, it could not decipher which comments belonged to which
commits and would overrlay comments over multiple commits.

with these changes will now only display comments on a commit in the
commit tree view, checkout the commit and open the correct files when
using the Conversations: tab, and correctly sync review threads to their
commits during review.

when HEAD is checked out all threads are displayed using their updated
line numbers if the line was moved without change.

when a specific commit is opened the original line numbers will be used
which associate to the original line the comment was made on.

additionally, a few UI elements have changed. the Conversations: tab in
the pr details tree now shows the commit a threaded conversation belongs
to. Also, an asterick is used in the Commits: tree now to indicate which
commit gh.nvim has currently checked out.

fixes: #47

Signed-off-by: Louis DeLosSantos <louis.delos@gmail.com>
@ldelossa ldelossa marked this pull request as ready for review August 21, 2022 15:27
@ldelossa ldelossa merged commit 2396580 into main Aug 21, 2022
@ldelossa ldelossa deleted the fix-review-threads branch August 21, 2022 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Comment threads occasionally mismatch with GitHub UI presentation of the change
1 participant