japicmp icon indicating copy to clipboard operation
japicmp copied to clipboard

Markdown report

Open scordio opened this issue 4 years ago • 6 comments

I would like to use japicmp to provide automated feedback to pull requests about binary compatibility.

Currently, I plan to add a comment to pull requests using the diff-like output. However, I like more the HTML visual impact so I tried some tools to have an automated conversion from HTML to Markdown, but the result is not that great. Also, embedding the HTML report directly in a comment does not work due to unsupported tags.

Would you be willing to add a Markdown report with layout and content similar to the HTML one?

If you like the idea, I can try to raise a PR about it.

scordio avatar Jul 11 '21 08:07 scordio

Have you seen the groovy plugin support here? You can write a groovy script that creates a Markdown report.

On the other hand, I would merge a Markdown report if you want to implement that.

siom79 avatar Jul 12 '21 12:07 siom79

Thanks, I didn't think about using the groovy support for that purpose. I think the effort for the script might be comparable to a native implementation, so I'll probably raise a PR for it.

Is it ok to rely on an existing library for Markdown generation, bringing that in as a new dependency?

scordio avatar Jul 12 '21 13:07 scordio

OK. Then go for it.

It is ok to include a 3rd party library for that.

Stefano Cordio @.***> schrieb am Mo., 12. Juli 2021, 15:41:

Thanks, I didn't think about using the groovy support for that purpose. I think the effort for the script might be comparable to a native implementation, so I'll probably raise a PR for it.

Is it ok to rely on an existing library for Markdown generation https://github.com/Steppschuh/Java-Markdown-Generator, bringing that in as a new dependency?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/siom79/japicmp/issues/291#issuecomment-878289578, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4U7NBU5XAXFAFSMHGIZK3TXLWJXANCNFSM5AFB44OQ .

siom79 avatar Jul 15 '21 16:07 siom79

I started looking into the necessary changes. Would you suggest adding the Markdown generation to XmlOutputGenerator (which is currently taking care of both the XML and the HTML reports), or would it be better to create a new MarkdownOutputGenerator?

I tend to favor the former as the Markdown structure would mimic the HTML one, but I'm not sure that XmlOutputGenerator would still be a good name for that class.

scordio avatar Aug 12 '21 11:08 scordio

I would prefer to have a new one, just like the StdoutOutputGenerator.

Am Do., 12. Aug. 2021 um 13:30 Uhr schrieb Stefano Cordio < @.***>:

I started looking into the necessary changes. Would you suggest adding the Markdown generation to XmlOutputGenerator (which is currently taking care of both the XML and the HTML reports), or would it be better to create a new MarkdownOutputGenerator?

I tend to favor the former as the Markdown structure would mimic the HTML one, but I'm not sure that XmlOutputGenerator would still be a good name for that class.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/siom79/japicmp/issues/291#issuecomment-897562243, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4U7NAQSEQUT4APJ4XZRETT4OWGDANCNFSM5AFB44OQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

siom79 avatar Aug 12 '21 15:08 siom79

Although I'm still behind with this one (almost one year later 😄), this is also a good fit with the new job summary feature of GitHub actions.

scordio avatar May 22 '22 08:05 scordio