MCPcopy
hub / github.com/github/github-mcp-server / refURL

Method refURL

pkg/raw/raw.go:37–42  ·  view source on GitHub ↗
(owner, repo, ref, path string)

Source from the content-addressed store, hash-verified

35}
36
37func (c *Client) refURL(owner, repo, ref, path string) string {
38 if ref == "" {
39 return c.url.JoinPath(owner, repo, "HEAD", path).String()
40 }
41 return c.url.JoinPath(owner, repo, ref, path).String()
42}
43
44func (c *Client) URLFromOpts(opts *ContentOpts, owner, repo, path string) string {
45 if opts == nil {

Callers 1

URLFromOptsMethod · 0.95

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected