You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- `{a,b,c}`- matches alternatives (e.g., `{dev,staging}/*` matches `dev/test` or `staging/test`)
73
+
74
+
**First-match-wins:** If multiple incoming webhooks match the same branch, the first matching webhook in the YAML order is used. Place more specific webhooks before general catch-all webhooks.
75
+
76
+
#### Examples
77
+
78
+
**Match feature branches with glob:**
79
+
80
+
```yaml
81
+
apiVersion: "pipelinesascode.tekton.dev/v1alpha1"
82
+
kind: Repository
83
+
metadata:
84
+
name: repo
85
+
namespace: ns
86
+
spec:
87
+
url: "https://github.com/owner/repo"
88
+
incoming:
89
+
- targets:
90
+
- "feature/*" # Matches any branch starting with "feature/"
91
+
secret:
92
+
name: feature-webhook-secret
93
+
type: webhook-url
94
+
```
95
+
96
+
**Multiple webhooks with first-match-wins:**
97
+
98
+
```yaml
99
+
apiVersion: "pipelinesascode.tekton.dev/v1alpha1"
100
+
kind: Repository
101
+
metadata:
102
+
name: repo
103
+
namespace: ns
104
+
spec:
105
+
url: "https://github.com/owner/repo"
106
+
incoming:
107
+
# Production - checked first (most specific)
108
+
- targets:
109
+
- main
110
+
- "v[0-9]*.[0-9]*.[0-9]*" # Semver tags like v1.2.3
0 commit comments