MCPcopy Index your code
hub / github.com/lingodotdev/lingo.dev / getGitHubRepo

Function getGitHubRepo

scripts/docs/src/utils.ts:33–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}
32
33export function getGitHubRepo() {
34 const repository = process.env.GITHUB_REPOSITORY;
35
36 if (!repository) {
37 throw new Error("GITHUB_REPOSITORY environment variable is missing.");
38 }
39
40 const [_, repo] = repository.split("/");
41
42 return repo;
43}
44
45export function getGitHubOwner() {
46 const repository = process.env.GITHUB_REPOSITORY;

Callers 2

utils.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected