Star a gist on behalf of authenticated user. GitHub API docs: https://docs.github.com/rest/gists/gists?apiVersion=2022-11-28#star-a-gist meta:operation PUT /gists/{gist_id}/star
(ctx context.Context, id string)
| 309 | // |
| 310 | //meta:operation PUT /gists/{gist_id}/star |
| 311 | func (s *GistsService) Star(ctx context.Context, id string) (*Response, error) { |
| 312 | u := fmt.Sprintf("gists/%v/star", id) |
| 313 | req, err := s.client.NewRequest(ctx, "PUT", u, nil) |
| 314 | if err != nil { |
| 315 | return nil, err |
| 316 | } |
| 317 | |
| 318 | return s.client.Do(req, nil) |
| 319 | } |
| 320 | |
| 321 | // Unstar a gist on a behalf of authenticated user. |
| 322 | // |