Repository navigation
Drop hide-zero-packages feature - #3297
Conversation
|
Just to confirm:
|
Great summary! I updated my description to make it clear. Just to mention that if we want to hide “Packages” tab on organization, we need to query the API. |
|
So, is it correct to say that this feature currently does not apply to GitHub at all? Perhaps it should be dropped and moved to the "added by github" section in the readme. I expect the organization profile to follow the user profile in hiding the packages. |
|
|
I still see the tab, so I think it doesn't work https://github.com/babel |
|
😅 My mistake, I wrote "always show without counter" and forget what does it mean. You are right, it's only for old GitHub now. |

In the new design, GitHub changed how they show "Packages" tab:
repos: only shown to collaborators (
Is there a need to hide them as well?)Details
users: only show if they have packages, without counter (and
hide-zero-packageswill always activate, this PR fixes that)organization: always show without counter
Test: https://github.com/kidonngDrop it according to https://github.com/sindresorhus/refined-github/pull/3297/files#issuecomment-652513782