MCPcopy Create free account
hub / github.com/idosal/git-mcp / constructGithubUrl

Function constructGithubUrl

src/api/utils/github.ts:90–97  ·  view source on GitHub ↗
(
  owner: string,
  repo: string,
  branch: string,
  path: string,
)

Source from the content-addressed store, hash-verified

88}
89
90export function constructGithubUrl(
91 owner: string,
92 repo: string,
93 branch: string,
94 path: string,
95) {
96 return `https://raw.githubusercontent.com/${owner}/${repo}/${branch}/${path}`;
97}
98
99/**
100 * Determines the default branch of a GitHub repository.

Callers 4

fetchRawFileFunction · 0.90
fetchDocumentationFunction · 0.85
getRepoBranchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected