Attach images and videos to issues and PRs with GitHub CLI
GitHub demonstrates how to use the GitHub CLI’s new --attach flag to upload screenshots and videos directly to issues, pull requests, and comments.
Overview
The video shows how teams can add “proof of work” to automated bug reports and pull requests by attaching media from the terminal.
Key points covered:
- New GitHub CLI capability: the
--attachflag for uploading images and videos to:- GitHub Issues
- Pull requests
- Comments
- Automation example: an automated Playwright agent sweeps a site for bugs, captures failure screenshots, and attaches evidence to a PR.
- Workflow narrative:
- Why automated agents benefit from attaching evidence
- Introducing the
--attachflag - Setting up a Playwright “bug fix skill”
- Running the automated workflow
- Attaching screenshot evidence to an issue
- Creating a fix PR with before-and-after media
Learn more: https://github.blog/changelog/2026-09-01-github-cli-media-in-issues-pull-requests-and-comments/