Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post comment with image #68

Open
staabm opened this issue Dec 13, 2020 · 1 comment
Open

Post comment with image #68

staabm opened this issue Dec 13, 2020 · 1 comment

Comments

@staabm
Copy link

staabm commented Dec 13, 2020

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

@peter-evans
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants