MCPcopy
hub / github.com/OpenListTeam/OpenList / getContentApiUrl

Method getContentApiUrl

drivers/github/driver.go:669–672  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

667var _ driver.Driver = (*Github)(nil)
668
669func (d *Github) getContentApiUrl(path string) string {
670 path = utils.FixAndCleanPath(path)
671 return fmt.Sprintf("https://api.github.com/repos/%s/%s/contents%s", d.Owner, d.Repo, path)
672}
673
674func (d *Github) get(path string) (*Object, error) {
675 res, err := d.client.R().SetQueryParam("ref", d.Ref).Get(d.getContentApiUrl(path))

Callers 1

getMethod · 0.95

Calls 1

FixAndCleanPathFunction · 0.92

Tested by

no test coverage detected