MCPcopy Create free account
hub / github.com/NiladriHazra/WhatToBuild / getRepository

Method getRepository

lib/github.ts:117–128  ·  view source on GitHub ↗
(repoFullName: string)

Source from the content-addressed store, hash-verified

115 }
116
117 async getRepository(repoFullName: string): Promise<GitHubRepo | null> {
118 try {
119 const response = await axios.get(`${this.baseURL}/repos/${repoFullName}`, {
120 headers: this.getHeaders()
121 });
122
123 return response.data;
124 } catch (error) {
125 console.error('GitHub get repository error:', error);
126 return null;
127 }
128 }
129
130 async getRepositoryContents(owner: string, repo: string, path = ''): Promise<RepoContent[]> {
131 try {

Callers 1

GETFunction · 0.95

Calls 1

getHeadersMethod · 0.95

Tested by

no test coverage detected