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

Method Star

github/gists.go:311–319  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

309//
310//meta:operation PUT /gists/{gist_id}/star
311func (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//

Callers 5

TestActivity_StarringFunction · 0.45
TestGistsService_StarFunction · 0.45
TestActivityService_StarFunction · 0.45

Calls 2

NewRequestMethod · 0.80
DoMethod · 0.45

Tested by 5

TestActivity_StarringFunction · 0.36
TestGistsService_StarFunction · 0.36
TestActivityService_StarFunction · 0.36