MishaKav / jest-coverage-comment

Comments a pull request or commit with the jest code coverage badge, full report and tests summary
MIT License
80 stars 34 forks source link

badge doesn't appear #84

Closed jhonjtoloza closed 6 months ago

jhonjtoloza commented 6 months ago
  - name: ChatBot Coverage
    uses: MishaKav/jest-coverage-comment@main
    with:
      coverage-summary-path: services/chat-bot/coverage/coverage-summary.json
      title: ChatBot Coverage
      badge-title: chatbot-coverage
      hide-comment: false
      create-new-comment: false

Using these params

Screenshot 2024-04-03 at 10 30 35 AM

What am I doing wrong, or is this a real issue?

MishaKav commented 6 months ago

please share me the raw content of commit (just do "edit comment" and copy the raw content)

jhonjtoloza commented 6 months ago

Thanks for answer here you are

ChatBot Coverage

Lines Statements Branches Functions
chatbot-coverage: 40%
40.77% (904/2217) 59.03% (49/83) 47.36% (18/38)
MishaKav commented 6 months ago

lol, this is a very strange bug around img-shields. There is some reason that the - causes trouble. You can easily fix this, by changing - (hyphen) to _ (underscore) or (space)

badge-title: chatbot_coverage

this link will not work: https://img.shields.io/badge/chatbot-coverage-40%25-orange.svg

this link will work: https://img.shields.io/badge/chatbot_coverage-40%25-orange.svg

jhonjtoloza commented 6 months ago

That works, thanks you very much for your time.