Skip to content

Commit d1373a7

Browse files
committed
fine tune
1 parent 7fbaf6e commit d1373a7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

services/webhook/webhook.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func checkBranchFilter(branchFilter string, ref git.RefName) bool {
119119
g, err := glob.Compile(branchFilter)
120120
if err != nil {
121121
// should not really happen as BranchFilter is validated
122-
log.Error("CheckBranch failed: %s", err)
122+
log.Debug("checkBranchFilter failed to compile filer %q, err: %s", branchFilter, err)
123123
return false
124124
}
125125

@@ -150,8 +150,9 @@ func PrepareWebhook(ctx context.Context, w *webhook_model.Webhook, event webhook
150150
return nil
151151
}
152152

153-
// Check the payload's git ref against the webhook's branch filter, if any.
153+
// If payload has no associated branch (e.g. it's a new tag, issue, etc.), branch filter has no effect.
154154
if ref := getPayloadRef(p); ref != "" {
155+
// Check the payload's git ref against the webhook's branch filter.
155156
if !checkBranchFilter(w.BranchFilter, ref) {
156157
return nil
157158
}

web_src/css/base.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ samp,
103103

104104
code {
105105
padding: 1px 4px;
106-
border-radius: .24em;
106+
border-radius: var(--border-radius);
107107
background-color: var(--color-label-bg);
108108
}
109109

@@ -185,7 +185,7 @@ table {
185185

186186
ul {
187187
margin: 0.5em 0;
188-
padding: 0 1.5em;
188+
padding: 0 0 0 1.5em;
189189
}
190190

191191
button {

0 commit comments

Comments
 (0)