DEV TOOLS Signal 433
Programmatically upload attachments to GitHub Issues, Pull Requests, and Comments
Engineers can now automate attaching images (e.g., screenshots, visual diffs) to GitHub content directly from CI scripts or GitHub Actions, without needing external storage services. This simplifies workflows for demo screenshots, test failure captures, and other automated reporting. The endpoint is unofficial and may change, but it currently works with a personal access token.
Written by elseif from the cluster below · every claim links back to a sourceThe three things worth knowing
The endpoint at uploads.github.com/user-attachments/assets accepts a file, MIME type, and repository ID via POST with token auth.
Previously, only browser drag-and-drop was available; this new capability enables scripting and automation.
The discovery was made by trying an approach shared by another developer, and it worked despite earlier attempts failing.
THE CLUSTER