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

Fixed [Codacy] badges (affects [vso readthedocs]) #2066

Merged
merged 4 commits into from
Sep 10, 2018
Merged

Conversation

PyvesB
Copy link
Member

@PyvesB PyvesB commented Sep 9, 2018

This pull request addresses #1985.

The current getValue regex in svg-badge-parser.js was no longer properly parsing Codacy's SVG badges, and that service's coverage and grade badges were also inconsistent with one another. The proposed solution is to make the regex customisable on a per service basis.

If we implement a BaseSvgService in #2031, we could implement a function returning a regex which can be overriden by implementations.

@PyvesB PyvesB added bug Bugs in badges and the frontend service-badge New or updated service badge labels Sep 9, 2018
@shields-ci
Copy link

Warnings
⚠️

This PR modified service code for readthedocs but not its test code.
That's okay so long as it's refactoring existing code.

⚠️

This PR modified service code for vso but not its test code.
That's okay so long as it's refactoring existing code.

Messages
📖

✨ Thanks for your contribution to Shields, @PyvesB!

Generated by 🚫 dangerJS

@PyvesB PyvesB changed the title Fixed [Codacy] badges Fixed [Codacy] badges (affects [vso readthedocs)] Sep 9, 2018
@PyvesB PyvesB changed the title Fixed [Codacy] badges (affects [vso readthedocs)] Fixed [Codacy] badges (affects [vso readthedocs]) Sep 9, 2018
Copy link
Member

@chris48s chris48s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a good solution - cheers

@PyvesB PyvesB merged commit 006710e into badges:master Sep 10, 2018
@shields-deployment
Copy link

This pull request was merged to master branch. This change is now waiting for deployment, which will usually happen within a few days. Stay tuned by joining our #ops channel on Discord!

After deployment, changes are copied to gh-pages branch:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs in badges and the frontend service-badge New or updated service badge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants