Skip to content
Source
Sign inSign up

See images and videos

Issues and pull requests / Pull requests

See every image and video of a pull request

A pull request changes the UI, and its author put screenshots and videos in the description and the comments. You want to check each one, without a search through the conversation and without a new tab for each link.

3 min read

The Media tab puts every image and video of the pull request on one page. A full-screen viewer then shows them one after the other.

1. Open the Media tab

  1. Open the pull request.
  2. Click the Media tab. The number on the tab is the count of images and videos.
The Media tab: three cards from the description by alice, and one image from a comment by dave

Each card shows:

  • A thumbnail of the image, or of the video with a play mark.
  • The author, or the agent.
  • Where the file is: description, comment, review or line comment.

The cards come from the text that you can see on the Conversation tab, oldest first. The tab shows only when that text has at least one image or video. Its URL ends in ?tab=media, so you can send the link to a person.

Icons are not media, so the tab leaves out:

  • An image that the text marks 32 pixels wide or high, or smaller.
  • An SVG image in a comment by a bot (a GitHub login that ends in [bot]), such as the status badges of a review bot.

2. Step through the files

  1. Click a card, or move the focus to it and press Enter. The viewer opens full screen on that file.
  2. To go to the next file, press the Right arrow key or click Next. After the last file, the viewer goes back to the first.
  3. To go back, press the Left arrow key or click Previous.
  4. To read the text around a file, click Show in conversation in the caption. The Conversation tab opens at that comment.
  5. To close the viewer, press Esc, click the X button, or click the dark area around the file.
The viewer: the first image at full size, Previous and Next at the sides, and the caption with Show in conversation

The caption under the file shows its place in the list (for example 3 of 8), its alt text, the author and where it is. A video plays when you move to it, and it pauses when you move away.

Done

You checked each screenshot and video of the pull request from one tab, and you read the comment of a file when you needed it.

Keys

KeyWhat it does
Right arrowNext file. After the last file, the first.
Left arrowPrevious file. Before the first file, the last.
HomeFirst file.
EndLast file.
EscClose the viewer.
  • When the focus is on a video, the arrow keys, Home and End control the video. Esc still closes the viewer.
  • If your system asks for reduced motion, the viewer opens and changes files with no animation.

The same viewer opens when you click an image in the text of the conversation. See See a file full screen.