We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dea5ee commit 1637d12Copy full SHA for 1637d12
routers/web/repo/actions/badge.go
@@ -31,6 +31,8 @@ func GetWorkflowBadge(ctx *context.Context) {
31
}
32
if len(tags) != 0 {
33
tag = tags[0].Name
34
+ } else {
35
+ tag = "" // return empty result on no tag
36
37
ref = fmt.Sprintf("refs/tags/%s", tag)
38
case tag != "":
0 commit comments