clockify / browser-extension

Clockify Browser Extension
https://clockify.me/chrome-time-tracking
BSD 3-Clause "New" or "Revised" License
185 stars 172 forks source link

GitHub integration pushing incorrect data into Project name #172

Closed thomasplevy closed 2 years ago

thomasplevy commented 2 years ago

I've noticed recently projects in my organization that look like these:

These match the main navigation (text only) of the GitHub menu for repos in my org (we have a lot of open issues... yea I know...)

Screenshot_2021-11-24_09-03-32

After reviewing the integration code I think this is due to what's likely a change in GitHub's markup, namely this line:

https://github.com/clockify/browser-extension/blob/2c287b2b99f65df1914e7cf3f5c864c29012f0a1/src/integrations/github.js#L4

If I open inspector tools (today) the intended selector seems to be: [data-pjax='#repo-content-pjax-container']

I haven't attempted to build the extension for development and try this out but I'm pretty sure this would resolve the issue.