MCPcopy
hub / github.com/PatrickJS/awesome-cursorrules / githubBlobPrefix

Function githubBlobPrefix

scripts/repo-config.mjs:7–9  ·  view source on GitHub ↗
(repository = DEFAULT_REPOSITORY, branch = DEFAULT_BRANCH)

Source from the content-addressed store, hash-verified

5export const RAW_GITHUB_ORIGIN = "https://raw.githubusercontent.com";
6
7export function githubBlobPrefix(repository = DEFAULT_REPOSITORY, branch = DEFAULT_BRANCH) {
8 return `${GITHUB_ORIGIN}/${repository}/blob/${branch}/`;
9}
10
11export function githubRawPrefix(repository = DEFAULT_REPOSITORY, branch = DEFAULT_BRANCH) {
12 return `${RAW_GITHUB_ORIGIN}/${repository}/${branch}/`;

Callers 3

githubRulesPrefixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected