-
Notifications
You must be signed in to change notification settings - Fork 189
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
Can you suggest any good way to post Compose preview differences in the PR? #354
Comments
Did a research and so far this is what I can achieve at the moment. Still too early and dirty but please take a look. eneim#1 (comment) (Too lazy to fake a failed test, so I just pick the first screenshot and put it to the comment. Depending on what you want to do, we can include all failed screenshots in the comment, but I have not tried with multiple images yet.) The point is to use iterative/setup-cml to build a markdown with images from local files. |
Probably |
Thanks, good found. I just found out about their custom image host too. Given the fact that there is no non-UI method to upload images to github's comment, I think automating this step will require the images to be hosted somewhere. On one hand, it seems to be safe to borrow There is some other options:
We always have the option to ... not doing this because we can download the artifact and verify the issue manually. What do you think? If we can keep using cml as-is, I can continue with the PR :D. Otherwise, we can re-visit this ticket another day. |
Ping @takahirom so it is Ok to use |
Sorry for keeping you waiting. How about creating a branch for the image and remove when PR close? |
@takahirom Got it. I can give it another try this weekend. At the mean time, if there is any promising approach, feel free to move ahead and let me know. |
@takahirom eneim#1 (comment) FYI, it can be overwhelming if the number of images are big. But I kinda make it works without cml. Will prepare a PR with more details. |
@eneim Great! I think we can filter later if there are the same composable function preview images. I'm really looking forward to seeing it! |
The current idea is quite similar to your comment above, except that it uses the repository's github page ( I may need your help to configure the |
Idea Description
I would like to see the diff of Compose Preview in the Pull Request comment.
Now, we can store the difference in GitHub artifact and comment the workflow URL🎉
But if we use GitHub artifact, the artifact will make a zip file and we can't access in the image file from PR comment.
Is there any idea to show the diff?
Reference images and links
#97
The text was updated successfully, but these errors were encountered: