MCPcopy Create free account
hub / github.com/google/go-github / DeleteRepositorySubscription

Method DeleteRepositorySubscription

github/activity_watching.go:151–159  ·  view source on GitHub ↗

DeleteRepositorySubscription deletes the subscription for the specified repository for the authenticated user. This is used to stop watching a repository. To control whether or not to receive notifications from a repository, use SetRepositorySubscription. GitHub API docs: https://docs.github.com/r

(ctx context.Context, owner, repo string)

Source from the content-addressed store, hash-verified

149//
150//meta:operation DELETE /repos/{owner}/{repo}/subscription
151func (s *ActivityService) DeleteRepositorySubscription(ctx context.Context, owner, repo string) (*Response, error) {
152 u := fmt.Sprintf("repos/%v/%v/subscription", owner, repo)
153 req, err := s.client.NewRequest(ctx, "DELETE", u, nil)
154 if err != nil {
155 return nil, err
156 }
157
158 return s.client.Do(req, nil)
159}

Calls 2

NewRequestMethod · 0.80
DoMethod · 0.45