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)
| 149 | // |
| 150 | //meta:operation DELETE /repos/{owner}/{repo}/subscription |
| 151 | func (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 | } |