Shields: Codacy badges broken

Created on 27 Aug 2018  路  5Comments  路  Source: badges/shields

Codacy have updated their own badges and we are no longer able to retrieve any relevant information using our fetchFromSvg function. As our result, Shields's badges are no longer working properly:


They do have a proper API documented here, but an API token is required. When none is provided, requests are rejected, even for public projects:

{"error":"not found"}

We may need to contact support to get this sorted.

bug service-badge

Most helpful comment

Okay, a proposed fix has now been merged into the master branch and will likely be deployed in the coming days. 馃憤

All 5 comments

I have reached out to Codacy support to make them aware of the issue. I will report back with any relevant responses.

Received a response from Codacy support. They have added the information required back into the badges. It seems like previously they only included two text fields in the SVG but now they include 3, so the index of the field needed for shields has increased by one for both badges.

This is great, thanks for keeping us updated!

The way forward is probably something along these lines:

  • add tests to our Codacy service implementation. This will allow us to maintain it more easily in the future.
  • extend fetchFromSvg to allow specifying a match index other than 1.
  • make sure we keep an eye on #2031 to avoid any clashes with the ongoing work around some other SVG services.

I'm happy to look into this over the week-end, ~but if someone wants to help out and submit a pull request before that, please feel free to do so (simply make some noise here so that we don't both start working on the same thing)~. 馃槈

Okay, a proposed fix has now been merged into the master branch and will likely be deployed in the coming days. 馃憤

All good, we are live since yesterday:

We're doing some more work to further improve the user experience with our Codacy badges, see #2102 for more information. 馃槈

Was this page helpful?
0 / 5 - 0 ratings

Related issues

techtonik picture techtonik  路  3Comments

salaros picture salaros  路  3Comments

kirankotari picture kirankotari  路  3Comments

chadwhitacre picture chadwhitacre  路  4Comments

PyvesB picture PyvesB  路  3Comments