Secret registers the GitHub secret
(secret string)
| 100 | |
| 101 | // Secret registers the GitHub secret |
| 102 | func (WebhookOptions) Secret(secret string) Option { |
| 103 | return func(hook *Webhook) error { |
| 104 | hook.secret = secret |
| 105 | return nil |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | // Webhook instance contains all methods needed to process events |
| 110 | type Webhook struct { |