sindresorhus/refined-github

I forgot to set the token #2917

Geo1088 posted onGitHub

<!-- Thanks for reporting a bug! ā›° 1. Make sure the bug is caused by Refined GitHub. Try disabling the extension first. 2. Include a full URL where the bug appears. 3. Include a screenshot/gif Issues without a URL/screenshot will be closed -->

I stumbled upon #2750 after observing some strange behavior in version 20.3.16 on Firefox 74.0 under Windows 10. I have the bugs-tab feature enabled, so I'm assuming it's enabled by default. The tab doesn't show up if I just view some repository's issues, but if I filter specifically for the "bug" label then the tab shows up. The counter in the tab always displays 0.

<details> <summary>Screenshots</summary>

image image


Any errors in the console? It might be https://github.com/sindresorhus/element-ready/issues/29

posted by fregante about 5 years ago

The tab appears for me in that repo, I think that's the issue

posted by fregante about 5 years ago

Oh, huh. I didn't realize a personal token was required for this feature. After setting one, it works as expected.

Is it a bug that, without a token, it tries to add the tab anyway when viewing the "bug" label?

posted by Geo1088 about 5 years ago

Generally if there's a bug, look for errors in the console. In this case it says specifically:

ā„¹ļø Refined GitHub: `bugs-tab`: Personal token required for this feature

When you're on the Bug label the tab is shown before the fetch happens (and fails, in this case)

https://github.com/sindresorhus/refined-github/blob/eca9e80d26e7e9bc07d27b862c00f795c91f9ed1/source/features/bugs-tab.tsx#L29-L31

0042dac hides the counter now.

posted by fregante about 5 years ago

Fund this Issue

$0.00
Funded

Pull requests