MCPcopy Create free account
hub / github.com/EndBug/add-and-commit / getOctokitClient

Function getOctokitClient

src/util.ts:8–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6import {getInput} from './io';
7
8function getOctokitClient() {
9 const token = getInput('github_token');
10 if (!token) {
11 throw new Error('github_token is required');
12 }
13 return getOctokit(token);
14}
15
16export async function getUserInfo(username?: string) {
17 if (!username) return undefined;

Callers 1

getUserInfoFunction · 0.70

Calls 2

getInputFunction · 0.90
getOctokitFunction · 0.85

Tested by

no test coverage detected