create-or-update-comment icon indicating copy to clipboard operation
create-or-update-comment copied to clipboard

Post comment with image

Open staabm opened this issue 4 years ago • 1 comments

Would be great if it would be possible to create a comment with a image.

I think it would be useful after creating github action local images (like screenshots) and post the image(s) with this action in a comment (like a user can copy/paste images in a regular comment)

In the end it would be helpful when the image urls would be available as output variable to re-use the image urls for other action steps

staabm avatar Dec 13 '20 15:12 staabm

Hi @staabm

That would be a nice feature. Unfortunately it doesn't seem possible with GitHub's API. See https://stackoverflow.com/questions/28703544/create-an-issue-with-image-via-github-api

My advice would be to upload the image somewhere in a separate step and then use the URL in the comment. Perhaps you could use a Gist or maybe some service like Imgur.

peter-evans avatar Dec 14 '20 01:12 peter-evans