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

Function getGitHubOwner

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

Source from the content-addressed store, hash-verified

43}
44
45export function getGitHubOwner() {
46 const repository = process.env.GITHUB_REPOSITORY;
47
48 if (!repository) {
49 throw new Error("GITHUB_REPOSITORY environment variable is missing.");
50 }
51
52 const [owner] = repository.split("/");
53
54 return owner;
55}
56
57export function getGitHubPRNumber() {
58 const prNumber = process.env.PR_NUMBER;

Callers 2

utils.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…