Skip to content

Conversation

3ZsForInsomnia
Copy link

Describe what this PR does / why we need it

This PR adds [u and ]u keybindings, which allow going to the prev/next file that is not VIEWED during a review.

Does this pull request fix one issue?

Fixes #1152

Describe how you did it

I added handlers that go through each file until they encounter one whose viewed_state is not VIEWED. If no such files are found, it simply moves on to the next/previous file from the current file.

Describe how to verify it

  1. Open a PR in Octo
  2. Start a review
  3. Mark 1+ files as viewed
  4. Use [u and ]u and ensure that the viewed file(s) are skipped
  5. If there are no more un-viewed files, it defaults to the next/previous file.

Special notes for reviews

Checklist

  • Passing tests and linting standards
  • Documentation updates in README.md and doc/octo.txt

@williambdean
Copy link
Collaborator

Thanks for the PR. Care to take a look @PeterCardenas ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add review_diff shortcuts to go to previous/next files "changed since last review" and unviewed files
2 participants