Madrapps / jacoco-report

Github action that publishes the JaCoCo report as a comment in the Pull Request
https://github.com/marketplace/actions/jacoco-report
MIT License
144 stars 63 forks source link

Styling title to custom headings instead of the default '###' #54

Closed thsaravana closed 1 year ago

thsaravana commented 1 year ago

When we add the title input, we render that as H3 by prefixing ###.

when title = Coverage Report

Coverage Report

when title = 🧟 Coverage Report

🧟 Coverage Report

But I believe we can actually give this 'styling' control to the users who want Bigger or Smaller titles. If we do # or ## then we get the Horizontal line separator. This could be something that the users want. Or when they wanted to use an emoji in the title, but it's too small in the H3 styling.

when title = 🧟 Coverage Report

🧟 Coverage Report

🧟 Coverage Report

🧟 Coverage Report

🧟 Coverage Report


🧟 Coverage Report

🧟 Coverage Report

🧟 Coverage Report

So, if the title starts with # then let's not append the default ###.

Things to test:

thsaravana commented 1 year ago

Back-Ticks works even in the current version. Only thing is we can't do

title: Coverage Report

instead it should be

title: 'Coverage Report'

We have to wrap the back-ticks within single-quotes