MCPcopy Create free account
hub / github.com/Microck/opencode-studio / getGitHubUser

Function getGitHubUser

server/index.js:2067–2073  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

2065}
2066
2067async function getGitHubUser(token) {
2068 const response = await fetch('https://api.github.com/user', {
2069 headers: { 'Authorization': `Bearer ${token}` }
2070 });
2071 if (!response.ok) return null;
2072 return await response.json();
2073}
2074
2075async function ensureGitHubRepo(token, repoName) {
2076 const [owner, repo] = repoName.split('/');

Callers 2

performGitHubBackupFunction · 0.85
index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected