Unstar a gist on a behalf of authenticated user. GitHub API docs: https://docs.github.com/rest/gists/gists?apiVersion=2022-11-28#unstar-a-gist meta:operation DELETE /gists/{gist_id}/star
(ctx context.Context, id string)
| 324 | // |
| 325 | //meta:operation DELETE /gists/{gist_id}/star |
| 326 | func (s *GistsService) Unstar(ctx context.Context, id string) (*Response, error) { |
| 327 | u := fmt.Sprintf("gists/%v/star", id) |
| 328 | req, err := s.client.NewRequest(ctx, "DELETE", u, nil) |
| 329 | if err != nil { |
| 330 | return nil, err |
| 331 | } |
| 332 | |
| 333 | return s.client.Do(req, nil) |
| 334 | } |
| 335 | |
| 336 | // IsStarred checks if a gist is starred by authenticated user. |
| 337 | // |