badgen.net icon indicating copy to clipboard operation
badgen.net copied to clipboard

[BUG] 403 for gits using different than "master" branch

Open MarcoRavich opened this issue 9 months ago • 7 comments

Hi there, nowdays many gits don't uses "master" branch anymore, so I've noticed that recently the service don't produce correct badges for.

Example:

Repository License
LCC
ADRO

LLC has "master" branch while ADRO has a "main" one instead.

Please fix it if possible.

Thanks in advance.

MarcoRavich avatar Mar 18 '25 10:03 MarcoRavich

Let's see if we can support both

amio avatar Jul 29 '25 01:07 amio

Works fine for my tests. I think this issue can be closed.

Leaflet with main branch:

ADRO just doesn't have any license file: , https://github.com/mishra-raman/ADRO, https://api.github.com/repos/mishra-raman/ADRO

Falke-Design avatar Aug 09 '25 08:08 Falke-Design

Sorry, bad example.

KFR: license: https://github.com/kfrlib/kfr/blob/main/LICENSE.txt

PTZ Joystick Control: license: https://github.com/AronHetLam/PTZJoystickControl/blob/main/LICENSE.txt

MarcoRavich avatar Aug 09 '25 10:08 MarcoRavich

@MarcoRavich still working for me 🫤

https://badgen.net/github/license/kfrlib/kfr: https://badgen.net/github/license/AronHetLam/PTZJoystickControl:

Falke-Design avatar Aug 09 '25 14:08 Falke-Design

Ok, don't know/understand why, but works inside the GitHub app (Android) and doesn't in desktop firefox browser (Win)...

MarcoRavich avatar Aug 09 '25 16:08 MarcoRavich

I use Firefox on Windows too. Can you please try to open the link in the browser directly without Github. Because Github caches images.

https://badgen.net/github/license/kfrlib/kfr

Falke-Design avatar Aug 09 '25 19:08 Falke-Design

https://badgen.net/github/license/kfrlib/kfr

Yes, this works.

Anyway here's what I see here:

MarcoRavich avatar Aug 10 '25 09:08 MarcoRavich