Skip to content

Commit ad7e126

Browse files
committed
Fix endpoint style switch
1 parent 8a210af commit ad7e126

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/repo/actions/badge.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func GetWorkflowBadge(ctx *context.Context) {
3939

4040
ctx.Data["Badge"] = b
4141
ctx.RespHeader().Set("Content-Type", "image/svg+xml")
42-
switch ctx.Req.URL.Query().Get("style") {
42+
switch style {
4343
case badge.StyleFlat:
4444
ctx.HTML(http.StatusOK, "shared/actions/runner_badge_flat")
4545
case badge.StyleFlatSquare:

0 commit comments

Comments
 (0)