How to attach a screen recording to a GitHub issue.
A short video often shows a bug faster than a paragraph does. Here is how to record one on a Mac, trim it, and put it on a GitHub issue or pull request so a maintainer can act on it.
1. Record it
The full steps and options are here.
macOS can record the screen without any extra app. Press Shift, Command and 5, choose the whole screen or a selected part, and press Record. Press the stop button in the menu bar when you are done. The file is saved to your Desktop by default.
2. Keep it short
GitHub limits video size. According to GitHub's documentation, a video can be 10 MB on a free plan and 100 MB when the repository belongs to a user or organisation on a paid plan, and the formats are .mp4, .mov and .webm. A screen recording of a few minutes can be larger than that, so cut it down. In QuickTime Player, open the file and choose Edit, then Trim. Keep the part where the bug happens.
3. Add it to the issue
Open the issue, or start a new one, and drag the video into the comment box, or paste it, or use the option to add files. GitHub uploads it and puts a link in your text, which shows as a video player once you post. The same works in a comment on a pull request.
4. Say what the video cannot
A video shows the bug. It does not show everything a maintainer needs. Write down:
- The steps you took, one per line.
- What you expected to happen, and what happened instead.
- The macOS version, the version of the project you were running, and any settings that matter.
Check the repository before you post. On a public repository anyone can open the video, so make sure the screen does not show a password, a token or someone else's information.
A faster way
Bugback, the app this site is for, keeps the last few minutes of your screen in memory, so you can save the bug after you have seen it. In its review window you trim the clip, add notes, and send it to GitHub as a new issue, or as a comment on an issue or pull request that exists, with the video playing in the page and your Mac's details included. Sending to a tracker is part of Pro, and every new install starts with 14 days of Pro, with no card.
Download Bugback for macOS, or see pricing.
Related: How to record a bug after it already happened on Mac, how to write a good bug report, and attaching a recording to a Linear issue.