WebhookPropertiesCreateParameters interface
建立 webhook 屬性的參數。
屬性
| actions | 觸發 Webhook 張貼通知的動作清單。 |
| custom |
將新增至 Webhook 通知的自定義標頭。 |
| scope | 可以觸發事件的存放庫範圍。 例如,『foo:*』 表示存放庫 『foo』 下所有標記的事件。 'foo:bar' 只表示 'foo:bar' 的事件。 'foo' 相當於 'foo:latest'。 空白表示所有事件。 |
| service |
Webhook 用來張貼通知的服務 URI。 |
| status | 呼叫作業時 Webhook 的狀態。 |
屬性詳細資料
actions
觸發 Webhook 張貼通知的動作清單。
actions: string[]
屬性值
string[]
customHeaders
將新增至 Webhook 通知的自定義標頭。
customHeaders?: Record<string, string>
屬性值
Record<string, string>
scope
可以觸發事件的存放庫範圍。 例如,『foo:*』 表示存放庫 『foo』 下所有標記的事件。 'foo:bar' 只表示 'foo:bar' 的事件。 'foo' 相當於 'foo:latest'。 空白表示所有事件。
scope?: string
屬性值
string
serviceUri
Webhook 用來張貼通知的服務 URI。
serviceUri: string
屬性值
string
status
呼叫作業時 Webhook 的狀態。
status?: string
屬性值
string