MCPcopy Index your code
hub / github.com/bitjson/typescript-starter / getGithubUsername

Function getGithubUsername

src/cli/tasks.ts:76–86  ·  view source on GitHub ↗
(
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
  fetcher: any
)

Source from the content-addressed store, hash-verified

74};
75
76export const getGithubUsername = (
77 // eslint-disable-next-line @typescript-eslint/no-explicit-any
78 fetcher: any
79) => async (email: string | undefined): Promise<string> => {
80 if (email === Placeholders.email) {
81 return Placeholders.username;
82 }
83 return fetcher(email).catch(() => {
84 return Placeholders.username;
85 });
86};
87
88export const getUserInfo = (spawner: typeof execa) => async () => {
89 const opts: Options = {

Callers 2

cli.unit.spec.tsFile · 0.90
addInferredOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected