Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit f16efa4

Browse files
committed
Lowercase repository badge
1 parent 088f927 commit f16efa4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

query/base.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@ func ForBaseImageInGraphQL(cfg *v1.ConfigFile, excludeSelf bool) (*types.BaseIma
249249
if q.ImagesByDiffIds[ii].Images[bi].Repository.Badge == "" && q.ImagesByDiffIds[ii].Images[bi].Repository.Host == "hub.docker.com" && strings.Index(q.ImagesByDiffIds[ii].Images[bi].Repository.Repo, "/") < 0 {
250250
q.ImagesByDiffIds[ii].Images[bi].Repository.Badge = "OFFICIAL_IMAGE"
251251
}
252+
if q.ImagesByDiffIds[ii].Images[bi].Repository.Badge != "" {
253+
q.ImagesByDiffIds[ii].Images[bi].Repository.Badge = strings.ToLower(q.ImagesByDiffIds[ii].Images[bi].Repository.Badge)
254+
}
252255
}
253256
}
254257
if count == 1 {

0 commit comments

Comments
 (0)