Skip to content

Instantly share code, notes, and snippets.

@meduzen
Last active July 26, 2021 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meduzen/2065c6cfeb1cccaeef185b299278b1c7 to your computer and use it in GitHub Desktop.
Save meduzen/2065c6cfeb1cccaeef185b299278b1c7 to your computer and use it in GitHub Desktop.
Get all files path in a PR, excluding the files marked as viewed or deleted
  1. Open your dev tools.
  2. Paste this in the console:
Array
  .from(document.querySelectorAll('.js-file'))
  .filter(el => !('fileUserViewed' in el.dataset) && el.dataset.fileDeleted == 'false')
  .map(el => el.querySelector('.file-header').dataset.path)

Right click on the displayed result and click “Copy object”.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment