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

Method getRepositoryLanguages

lib/github.ts:208–218  ·  view source on GitHub ↗
(owner: string, repo: string)

Source from the content-addressed store, hash-verified

206 }
207
208 async getRepositoryLanguages(owner: string, repo: string): Promise<Record<string, number>> {
209 try {
210 const response = await axios.get(`${this.baseURL}/repos/${owner}/${repo}/languages`, {
211 headers: this.getHeaders()
212 });
213 return response.data;
214 } catch (error) {
215 console.error('GitHub languages error:', error);
216 return {};
217 }
218 }
219
220 async getRepositoryStats(owner: string, repo: string) {
221 try {

Callers 1

GETFunction · 0.95

Calls 1

getHeadersMethod · 0.95

Tested by

no test coverage detected