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
Copy file name to clipboardExpand all lines: pkg/cmd/monitor.go
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -80,9 +80,14 @@ var monitorsCreate = requestflag.WithInnerFlags(cli.Command{
80
80
"webhook": {
81
81
&requestflag.InnerFlag[string]{
82
82
Name: "webhook.url",
83
-
Usage: "Webhook URL called when a change is detected.",
83
+
Usage: "Webhook URL events are delivered to.",
84
84
InnerField: "url",
85
85
},
86
+
&requestflag.InnerFlag[[]string]{
87
+
Name: "webhook.events",
88
+
Usage: "Events delivered to this endpoint. `change.detected` fires only when a run detects a change; `run.completed` fires on every completed run — including runs that detected no change — and embeds the change when one was detected. Defaults to `[\"change.detected\"]` when omitted.",
89
+
InnerField: "events",
90
+
},
86
91
&requestflag.InnerFlag[string]{
87
92
Name: "webhook.secret",
88
93
Usage: "Signing secret used to verify webhook authenticity. Each delivery includes an `X-Context-Signature: t=<unix>,v1=<hmac>` header, where the HMAC is SHA-256 over `\"{t}.{rawRequestBody}\"` keyed by this secret. Recompute it with a constant-time compare and reject stale timestamps to prevent replay. Generated by the API; cannot be set by clients.",
@@ -174,9 +179,14 @@ var monitorsUpdate = requestflag.WithInnerFlags(cli.Command{
174
179
"webhook": {
175
180
&requestflag.InnerFlag[string]{
176
181
Name: "webhook.url",
177
-
Usage: "Webhook URL called when a change is detected.",
182
+
Usage: "Webhook URL events are delivered to.",
178
183
InnerField: "url",
179
184
},
185
+
&requestflag.InnerFlag[[]string]{
186
+
Name: "webhook.events",
187
+
Usage: "Events delivered to this endpoint. `change.detected` fires only when a run detects a change; `run.completed` fires on every completed run — including runs that detected no change — and embeds the change when one was detected. Defaults to `[\"change.detected\"]` when omitted.",
188
+
InnerField: "events",
189
+
},
180
190
&requestflag.InnerFlag[string]{
181
191
Name: "webhook.secret",
182
192
Usage: "Signing secret used to verify webhook authenticity. Each delivery includes an `X-Context-Signature: t=<unix>,v1=<hmac>` header, where the HMAC is SHA-256 over `\"{t}.{rawRequestBody}\"` keyed by this secret. Recompute it with a constant-time compare and reject stale timestamps to prevent replay. Generated by the API; cannot be set by clients.",
0 commit comments