Unsubscribe lets servers unregister to no longer receive updates when a topic is updated. GitHub API docs: https://docs.github.com/webhooks/about-webhooks-for-repositories#pubsubhubbub meta:operation POST /hub
(ctx context.Context, owner, repo, event, callback string, secret []byte)
| 242 | // |
| 243 | //meta:operation POST /hub |
| 244 | func (s *RepositoriesService) Unsubscribe(ctx context.Context, owner, repo, event, callback string, secret []byte) (*Response, error) { |
| 245 | req, err := s.createWebSubRequest(ctx, "unsubscribe", owner, repo, event, callback, secret) |
| 246 | if err != nil { |
| 247 | return nil, err |
| 248 | } |
| 249 | |
| 250 | return s.client.Do(req, nil) |
| 251 | } |
| 252 | |
| 253 | // createWebSubRequest returns a subscribe/unsubscribe request that implements |
| 254 | // the WebSub (formerly PubSubHubbub) protocol. |