MCPcopy Index your code
hub / github.com/google/go-github / Unsubscribe

Method Unsubscribe

github/repos_hooks.go:244–251  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

242//
243//meta:operation POST /hub
244func (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.

Callers 1

Calls 2

createWebSubRequestMethod · 0.95
DoMethod · 0.45

Tested by 1