How to programmatically upload attachments to GitHub Issues, Pull Requests, and Comments, finally, for now

It’s possible to programmatically upload images to GitHub Issues, Pull Requests and Comments via automation. Finally, though maybe mistakenly, I dunno. It’s fairly well known that for the longest time, GitHub has not had a programmatic interface for uploading images and attachments . It’s possible in the browser, by dragging-and-dropping your image, but not via something you can script or curl.…