codecov / codecov-browser-extension

A browser extension for Codecov. Works for Chrome and Firefox
Apache License 2.0
36 stars 11 forks source link

Fix broken file coverage due to GitHub response format change #70

Closed spalmurray-codecov closed 6 months ago

spalmurray-codecov commented 6 months ago

Currently coverage when viewing a file is broken. It seems that GitHub started returning HTML here by default - or perhaps something else caused this to happen - regardless, explicitly requesting application/json content type fixes the issue.

Additionally, add regex matchers for detecting file/pr page on GitHub instead of try catch approach