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.
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:
fetchFromSvg to allow specifying a match index other than 1.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. 馃槈
Most helpful comment
Okay, a proposed fix has now been merged into the
masterbranch and will likely be deployed in the coming days. 馃憤