MCPcopy Create free account
hub / github.com/ejoffe/spr / addStar

Method addStar

github/githubclient/star.go:98–106  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

96}
97
98func (c *client) addStar(ctx context.Context) {
99 resp, err := c.api.StarGetRepo(ctx, sprRepoOwner, sprRepoName)
100 check(err)
101
102 _, err = c.api.StarAdd(ctx, genclient.AddStarInput{
103 StarrableId: resp.Repository.Id,
104 })
105 check(err)
106}

Callers 1

MaybeStarMethod · 0.95

Calls 3

checkFunction · 0.70
StarGetRepoMethod · 0.65
StarAddMethod · 0.65

Tested by

no test coverage detected