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

Method Unstar

github/gists.go:326–334  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

324//
325//meta:operation DELETE /gists/{gist_id}/star
326func (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//

Calls 2

NewRequestMethod · 0.80
DoMethod · 0.45